package ps4;

//import com.sun.awt.AWTUtilities;
import java.awt.AWTException;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.MenuItem;
import java.awt.Point;
import java.awt.PopupMenu;
import java.awt.Robot;
import java.awt.SystemTray;
import java.awt.Toolkit;
import java.awt.TrayIcon;
import java.awt.datatransfer.Clipboard;
//import java.awt.datatransfer.DataFlavor;
//import java.awt.datatransfer.StringSelection;
//import java.awt.datatransfer.Transferable;
//import java.awt.datatransfer.UnsupportedFlavorException;
//import java.awt.dnd.DnDConstants;
//import java.awt.dnd.DropTarget;
//import java.awt.dnd.DropTargetDropEvent;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionAdapter;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.Calendar;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JToolBar;
import javax.swing.Popup;
import javax.swing.PopupFactory;
import javax.swing.SwingUtilities;
import javax.swing.Timer;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.SingleFrameApplication;

public class PS4View extends FrameView {

    String path = "";
    JFrame frame = this.getFrame();
    String result = "";
    String result1 = "";
    String text = "";
    int focus = 0;
    String enter = "";
    int tang = 1;
    int hide = 1;
    int tray = 1;
    int expandButtom = 1;
    int expandRight = 1;
    int changePanel = 1;
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    int ScreenWidth = (int)screenSize.getWidth();
    int ScreenHeight = (int)screenSize.getHeight();
    int width=1250;
    int height = 555;
    int LocationFull_X=(ScreenWidth-width);
    int LocationFull_Y=0;
    int LocationMini_X=900;
    int LocationMini_Y=30;
    String status = "";
    String bugtitle;
    final static Point point = new Point();
    final Clipboard clipboard = frame.getToolkit().getSystemClipboard();
    static PopupMenu menu;
    //String userName = System.getProperty("user.name");
    //String osarch = System.getProperty("os.arch");
    //String osname = System.getProperty("os.name");
    //String osversion = System.getProperty("os.version");
    String userdir = System.getProperty("user.dir");
    String userhome = System.getProperty("user.home");
       
    BufferedImage image = ImageIO.read(frame.getClass().getResource("/ps4/resources/icon.png"));
    TrayIcon trayIcon = new TrayIcon(image, "PS4", menu);
    SystemTray trayS = SystemTray.getSystemTray();
    int beginHour1=0;
    int beginMinute1=0;
    int beginHour2=0;
    int beginMinute2=0;
    int beginHour3=0;
    int beginMinute3=0;
    int beginHour4=0;
    int beginMinute4=0;
    int beginHour5=0;
    int beginMinute5=0;
    
    
    public PS4View(SingleFrameApplication app) throws Exception {
        super(app);
        initComponents();
        String separator = System.getProperty("file.separator");
        path = userdir + separator;
        frame.setUndecorated(true);
        frame.setIconImage(image);
        frame.setResizable(false);
        frame.toFront();
        frame.setAlwaysOnTop(true);
        frame.setLocation(LocationFull_X, LocationFull_Y);
        frame.setLayout(new FlowLayout());
        frame.setPreferredSize(new java.awt.Dimension(width, height));
        mainPanel.setPreferredSize(new java.awt.Dimension(width, height));
        ReadFileReportTXT();
        ChangeFocus();
        start();
        setTheme();
        frame.addMouseListener(new MouseAdapter() {
            @Override
            public void mousePressed(MouseEvent e) {
                point.x = e.getX();
                point.y = e.getY();
            }
        });
        frame.addMouseMotionListener(new MouseMotionAdapter() {
            @Override
            public void mouseDragged(MouseEvent e) {
                Point p = frame.getLocation();
                frame.setLocation(p.x + e.getX() - point.x,
                        p.y + e.getY() - point.y);
            }
        });
   
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        jPanelAllUser = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jButtonEnable1 = new javax.swing.JButton();
        jPanelTime1 = new javax.swing.JPanel();
        jLabelForBeginTime1 = new javax.swing.JLabel();
        jLabelBeginTime1 = new javax.swing.JLabel();
        jLabelForEndTime1 = new javax.swing.JLabel();
        jLabelEndTime1 = new javax.swing.JLabel();
        jLabelSubtract1 = new javax.swing.JLabel();
        jComboBoxSubtractTime1 = new javax.swing.JComboBox();
        jButtonReset1 = new javax.swing.JButton();
        jLabelTimeResult1 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabelMoneyOfTime1 = new javax.swing.JLabel();
        jLabelPlus1_1 = new javax.swing.JLabel();
        jCheckBoxWater1 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfWater1 = new javax.swing.JComboBox();
        jComboBoxNumberOfWater1 = new javax.swing.JComboBox();
        jLabelPlus1_2 = new javax.swing.JLabel();
        jCheckBoxCafe1 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCafe1 = new javax.swing.JComboBox();
        jComboBoxNumberOfCafe1 = new javax.swing.JComboBox();
        jLabelPlus1_3 = new javax.swing.JLabel();
        jCheckBoxCigarette1 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCigarette1 = new javax.swing.JComboBox();
        jComboBoxNumberOfCigarette1 = new javax.swing.JComboBox();
        jButtonSumMoney1 = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jButtonEnable2 = new javax.swing.JButton();
        jPanelTime2 = new javax.swing.JPanel();
        jLabelForBeginTime2 = new javax.swing.JLabel();
        jLabelBeginTime2 = new javax.swing.JLabel();
        jLabelForEndTime2 = new javax.swing.JLabel();
        jLabelEndTime2 = new javax.swing.JLabel();
        jLabelSubtract2 = new javax.swing.JLabel();
        jComboBoxSubtractTime2 = new javax.swing.JComboBox();
        jButtonReset2 = new javax.swing.JButton();
        jLabelTimeResult2 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabelMoneyOfTime2 = new javax.swing.JLabel();
        jLabelPlus1_4 = new javax.swing.JLabel();
        jCheckBoxWater2 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfWater2 = new javax.swing.JComboBox();
        jComboBoxNumberOfWater2 = new javax.swing.JComboBox();
        jLabelPlus1_5 = new javax.swing.JLabel();
        jCheckBoxCafe2 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCafe2 = new javax.swing.JComboBox();
        jComboBoxNumberOfCafe2 = new javax.swing.JComboBox();
        jLabelPlus1_6 = new javax.swing.JLabel();
        jCheckBoxCigarette2 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCigarette2 = new javax.swing.JComboBox();
        jComboBoxNumberOfCigarette2 = new javax.swing.JComboBox();
        jButtonSumMoney2 = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jButtonEnable3 = new javax.swing.JButton();
        jPanelTime3 = new javax.swing.JPanel();
        jLabelForBeginTime3 = new javax.swing.JLabel();
        jLabelBeginTime3 = new javax.swing.JLabel();
        jLabelForEndTime3 = new javax.swing.JLabel();
        jLabelEndTime3 = new javax.swing.JLabel();
        jLabelSubtract3 = new javax.swing.JLabel();
        jComboBoxSubtractTime3 = new javax.swing.JComboBox();
        jButtonReset3 = new javax.swing.JButton();
        jLabelTimeResult3 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabelMoneyOfTime3 = new javax.swing.JLabel();
        jLabelPlus1_7 = new javax.swing.JLabel();
        jCheckBoxWater3 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfWater3 = new javax.swing.JComboBox();
        jComboBoxNumberOfWater3 = new javax.swing.JComboBox();
        jLabelPlus1_8 = new javax.swing.JLabel();
        jCheckBoxCafe3 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCafe3 = new javax.swing.JComboBox();
        jComboBoxNumberOfCafe3 = new javax.swing.JComboBox();
        jLabelPlus1_9 = new javax.swing.JLabel();
        jCheckBoxCigarette3 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCigarette3 = new javax.swing.JComboBox();
        jComboBoxNumberOfCigarette3 = new javax.swing.JComboBox();
        jButtonSumMoney3 = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jButtonEnable4 = new javax.swing.JButton();
        jPanelTime4 = new javax.swing.JPanel();
        jLabelForBeginTime4 = new javax.swing.JLabel();
        jLabelBeginTime4 = new javax.swing.JLabel();
        jLabelForEndTime4 = new javax.swing.JLabel();
        jLabelEndTime4 = new javax.swing.JLabel();
        jLabelSubtract4 = new javax.swing.JLabel();
        jComboBoxSubtractTime4 = new javax.swing.JComboBox();
        jButtonReset4 = new javax.swing.JButton();
        jLabelTimeResult4 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabelMoneyOfTime4 = new javax.swing.JLabel();
        jLabelPlus1_10 = new javax.swing.JLabel();
        jCheckBoxWater4 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfWater4 = new javax.swing.JComboBox();
        jComboBoxNumberOfWater4 = new javax.swing.JComboBox();
        jLabelPlus1_11 = new javax.swing.JLabel();
        jCheckBoxCafe4 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCafe4 = new javax.swing.JComboBox();
        jComboBoxNumberOfCafe4 = new javax.swing.JComboBox();
        jLabelPlus1_12 = new javax.swing.JLabel();
        jCheckBoxCigarette4 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCigarette4 = new javax.swing.JComboBox();
        jComboBoxNumberOfCigarette4 = new javax.swing.JComboBox();
        jButtonSumMoney4 = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jButtonEnable5 = new javax.swing.JButton();
        jPanelTime5 = new javax.swing.JPanel();
        jLabelForBeginTime5 = new javax.swing.JLabel();
        jLabelBeginTime5 = new javax.swing.JLabel();
        jLabelForEndTime5 = new javax.swing.JLabel();
        jLabelEndTime5 = new javax.swing.JLabel();
        jLabelSubtract5 = new javax.swing.JLabel();
        jComboBoxSubtractTime5 = new javax.swing.JComboBox();
        jButtonReset5 = new javax.swing.JButton();
        jLabelTimeResult5 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabelMoneyOfTime5 = new javax.swing.JLabel();
        jLabelPlus1_13 = new javax.swing.JLabel();
        jCheckBoxWater5 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfWater5 = new javax.swing.JComboBox();
        jComboBoxNumberOfWater5 = new javax.swing.JComboBox();
        jLabelPlus1_14 = new javax.swing.JLabel();
        jCheckBoxCafe5 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCafe5 = new javax.swing.JComboBox();
        jComboBoxNumberOfCafe5 = new javax.swing.JComboBox();
        jLabelPlus1_15 = new javax.swing.JLabel();
        jCheckBoxCigarette5 = new javax.swing.JCheckBox();
        jComboBoxMoneyOfCigarette5 = new javax.swing.JComboBox();
        jComboBoxNumberOfCigarette5 = new javax.swing.JComboBox();
        jButtonSumMoney5 = new javax.swing.JButton();
        jPanelTheme = new javax.swing.JPanel();
        jPanelMoveableIAPExpand = new javax.swing.JPanel();
        jButtonMinimize = new javax.swing.JButton();
        jButtonFocus = new javax.swing.JButton();
        jRadioButtonDefaultLF = new javax.swing.JRadioButton();
        jRadioButtonNimbus = new javax.swing.JRadioButton();
        jRadioButtonAluminium = new javax.swing.JRadioButton();
        jRadioButtonGraphite = new javax.swing.JRadioButton();
        jRadioButtonMint = new javax.swing.JRadioButton();
        jRadioButtonNoire = new javax.swing.JRadioButton();
        jRadioButtonAcryl = new javax.swing.JRadioButton();
        jCheckBoxEnablePrice = new javax.swing.JCheckBox();
        jTextFieldPricePerMinute = new javax.swing.JTextField();
        jLabelExit3 = new javax.swing.JLabel();
        buttonGroup1 = new javax.swing.ButtonGroup();

        mainPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        mainPanel.setAlignmentX(0.0F);
        mainPanel.setAlignmentY(0.0F);
        mainPanel.setPreferredSize(new java.awt.Dimension(507, 670));
        mainPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 0, 0));

        jPanelAllUser.setPreferredSize(new java.awt.Dimension(1250, 500));
        jPanelAllUser.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                jPanelAllUserComponentShown(evt);
            }
        });
        jPanelAllUser.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 0, 0));

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ps4.PS4.class).getContext().getResourceMap(PS4View.class);
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jPanel1.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel1.border.titleFont"))); // NOI18N
        jPanel1.setName("jPanel1"); // NOI18N
        jPanel1.setPreferredSize(new java.awt.Dimension(250, 500));
        jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 3));

        jButtonEnable1.setFont(resourceMap.getFont("jButtonSumMoney1.font")); // NOI18N
        jButtonEnable1.setText(resourceMap.getString("jButtonEnable1.text")); // NOI18N
        jButtonEnable1.setName("jButtonEnable1"); // NOI18N
        jButtonEnable1.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonEnable1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEnable1ActionPerformed(evt);
            }
        });
        jPanel1.add(jButtonEnable1);

        jPanelTime1.setName("jPanelTime1"); // NOI18N
        jPanelTime1.setPreferredSize(new java.awt.Dimension(238, 360));
        jPanelTime1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1));

        jLabelForBeginTime1.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForBeginTime1.setText(resourceMap.getString("jLabelForBeginTime1.text")); // NOI18N
        jLabelForBeginTime1.setEnabled(false);
        jLabelForBeginTime1.setName("jLabelForBeginTime1"); // NOI18N
        jLabelForBeginTime1.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime1.add(jLabelForBeginTime1);

        jLabelBeginTime1.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelBeginTime1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelBeginTime1.setText(resourceMap.getString("jLabelBeginTime1.text")); // NOI18N
        jLabelBeginTime1.setEnabled(false);
        jLabelBeginTime1.setName("jLabelBeginTime1"); // NOI18N
        jLabelBeginTime1.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime1.add(jLabelBeginTime1);

        jLabelForEndTime1.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForEndTime1.setText(resourceMap.getString("jLabelForEndTime1.text")); // NOI18N
        jLabelForEndTime1.setEnabled(false);
        jLabelForEndTime1.setName("jLabelForEndTime1"); // NOI18N
        jLabelForEndTime1.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime1.add(jLabelForEndTime1);

        jLabelEndTime1.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelEndTime1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelEndTime1.setText(resourceMap.getString("jLabelEndTime1.text")); // NOI18N
        jLabelEndTime1.setEnabled(false);
        jLabelEndTime1.setName("jLabelEndTime1"); // NOI18N
        jLabelEndTime1.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime1.add(jLabelEndTime1);

        jLabelSubtract1.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelSubtract1.setText(resourceMap.getString("text")); // NOI18N
        jLabelSubtract1.setEnabled(false);
        jLabelSubtract1.setName(""); // NOI18N
        jLabelSubtract1.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime1.add(jLabelSubtract1);

        jComboBoxSubtractTime1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0", "1", "2", "3", "4", "5", "10", "15" }));
        jComboBoxSubtractTime1.setEnabled(false);
        jComboBoxSubtractTime1.setName("jComboBoxSubtractTime1"); // NOI18N
        jComboBoxSubtractTime1.setPreferredSize(new java.awt.Dimension(110, 24));
        jPanelTime1.add(jComboBoxSubtractTime1);

        jButtonReset1.setText(resourceMap.getString("jButtonReset1.text")); // NOI18N
        jButtonReset1.setEnabled(false);
        jButtonReset1.setName("jButtonReset1"); // NOI18N
        jButtonReset1.setPreferredSize(new java.awt.Dimension(61, 15));
        jButtonReset1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonReset1ActionPerformed(evt);
            }
        });
        jPanelTime1.add(jButtonReset1);

        jLabelTimeResult1.setFont(resourceMap.getFont("jLabelTimeResult3.font")); // NOI18N
        jLabelTimeResult1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTimeResult1.setText(resourceMap.getString("jLabelTimeResult1.text")); // NOI18N
        jLabelTimeResult1.setEnabled(false);
        jLabelTimeResult1.setName("jLabelTimeResult1"); // NOI18N
        jLabelTimeResult1.setPreferredSize(new java.awt.Dimension(160, 40));
        jPanelTime1.add(jLabelTimeResult1);

        jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setEnabled(false);
        jLabel1.setName("jLabel1"); // NOI18N
        jLabel1.setPreferredSize(new java.awt.Dimension(100, 30));
        jPanelTime1.add(jLabel1);

        jLabelMoneyOfTime1.setFont(resourceMap.getFont("jLabelMoneyOfTime5.font")); // NOI18N
        jLabelMoneyOfTime1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelMoneyOfTime1.setText(resourceMap.getString("jLabelMoneyOfTime1.text")); // NOI18N
        jLabelMoneyOfTime1.setEnabled(false);
        jLabelMoneyOfTime1.setName("jLabelMoneyOfTime1"); // NOI18N
        jLabelMoneyOfTime1.setPreferredSize(new java.awt.Dimension(130, 30));
        jPanelTime1.add(jLabelMoneyOfTime1);

        jLabelPlus1_1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_1.setText(resourceMap.getString("jLabelPlus1_1.text")); // NOI18N
        jLabelPlus1_1.setEnabled(false);
        jLabelPlus1_1.setName("jLabelPlus1_1"); // NOI18N
        jLabelPlus1_1.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime1.add(jLabelPlus1_1);

        jCheckBoxWater1.setFont(resourceMap.getFont("jCheckBoxWater1.font")); // NOI18N
        jCheckBoxWater1.setForeground(resourceMap.getColor("jCheckBoxWater1.foreground")); // NOI18N
        jCheckBoxWater1.setText(resourceMap.getString("jCheckBoxWater1.text")); // NOI18N
        jCheckBoxWater1.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxWater1.border.shadowColor"))); // NOI18N
        jCheckBoxWater1.setBorderPainted(true);
        jCheckBoxWater1.setEnabled(false);
        jCheckBoxWater1.setName("jCheckBoxWater1"); // NOI18N
        jCheckBoxWater1.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxWater1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxWater1StateChanged(evt);
            }
        });
        jPanelTime1.add(jCheckBoxWater1);

        jComboBoxMoneyOfWater1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", "15000", "20000", "25000" }));
        jComboBoxMoneyOfWater1.setEnabled(false);
        jComboBoxMoneyOfWater1.setName("jComboBoxMoneyOfWater1"); // NOI18N
        jComboBoxMoneyOfWater1.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime1.add(jComboBoxMoneyOfWater1);

        jComboBoxNumberOfWater1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfWater1.setEnabled(false);
        jComboBoxNumberOfWater1.setName("jComboBoxNumberOfWater1"); // NOI18N
        jComboBoxNumberOfWater1.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime1.add(jComboBoxNumberOfWater1);

        jLabelPlus1_2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_2.setText(resourceMap.getString("jLabelPlus1_2.text")); // NOI18N
        jLabelPlus1_2.setEnabled(false);
        jLabelPlus1_2.setName("jLabelPlus1_2"); // NOI18N
        jLabelPlus1_2.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime1.add(jLabelPlus1_2);

        jCheckBoxCafe1.setFont(resourceMap.getFont("jCheckBoxWater1.font")); // NOI18N
        jCheckBoxCafe1.setForeground(resourceMap.getColor("jCheckBoxCafe1.foreground")); // NOI18N
        jCheckBoxCafe1.setText(resourceMap.getString("jCheckBoxCafe1.text")); // NOI18N
        jCheckBoxCafe1.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCafe1.border.shadowColor"))); // NOI18N
        jCheckBoxCafe1.setBorderPainted(true);
        jCheckBoxCafe1.setEnabled(false);
        jCheckBoxCafe1.setName("jCheckBoxCafe1"); // NOI18N
        jCheckBoxCafe1.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCafe1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCafe1StateChanged(evt);
            }
        });
        jPanelTime1.add(jCheckBoxCafe1);

        jComboBoxMoneyOfCafe1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", " ", " " }));
        jComboBoxMoneyOfCafe1.setEnabled(false);
        jComboBoxMoneyOfCafe1.setName("jComboBoxMoneyOfCafe1"); // NOI18N
        jComboBoxMoneyOfCafe1.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime1.add(jComboBoxMoneyOfCafe1);

        jComboBoxNumberOfCafe1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCafe1.setEnabled(false);
        jComboBoxNumberOfCafe1.setName("jComboBoxNumberOfCafe1"); // NOI18N
        jComboBoxNumberOfCafe1.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime1.add(jComboBoxNumberOfCafe1);

        jLabelPlus1_3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_3.setText(resourceMap.getString("jLabelPlus1_3.text")); // NOI18N
        jLabelPlus1_3.setEnabled(false);
        jLabelPlus1_3.setName("jLabelPlus1_3"); // NOI18N
        jLabelPlus1_3.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime1.add(jLabelPlus1_3);

        jCheckBoxCigarette1.setFont(resourceMap.getFont("jCheckBoxWater1.font")); // NOI18N
        jCheckBoxCigarette1.setForeground(resourceMap.getColor("jCheckBoxCigarette1.foreground")); // NOI18N
        jCheckBoxCigarette1.setText(resourceMap.getString("jCheckBoxCigarette1.text")); // NOI18N
        jCheckBoxCigarette1.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCigarette1.border.shadowColor"))); // NOI18N
        jCheckBoxCigarette1.setBorderPainted(true);
        jCheckBoxCigarette1.setEnabled(false);
        jCheckBoxCigarette1.setName("jCheckBoxCigarette1"); // NOI18N
        jCheckBoxCigarette1.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCigarette1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCigarette1StateChanged(evt);
            }
        });
        jPanelTime1.add(jCheckBoxCigarette1);

        jComboBoxMoneyOfCigarette1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1000", "2000", "3000", "4000", "5000" }));
        jComboBoxMoneyOfCigarette1.setEnabled(false);
        jComboBoxMoneyOfCigarette1.setName("jComboBoxMoneyOfCigarette1"); // NOI18N
        jComboBoxMoneyOfCigarette1.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime1.add(jComboBoxMoneyOfCigarette1);

        jComboBoxNumberOfCigarette1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCigarette1.setEnabled(false);
        jComboBoxNumberOfCigarette1.setName("jComboBoxNumberOfCigarette1"); // NOI18N
        jComboBoxNumberOfCigarette1.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime1.add(jComboBoxNumberOfCigarette1);

        jButtonSumMoney1.setFont(resourceMap.getFont("jButtonSumMoney1.font")); // NOI18N
        jButtonSumMoney1.setText(resourceMap.getString("jButtonSumMoney1.text")); // NOI18N
        jButtonSumMoney1.setEnabled(false);
        jButtonSumMoney1.setName("jButtonSumMoney1"); // NOI18N
        jButtonSumMoney1.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonSumMoney1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSumMoney1ActionPerformed(evt);
            }
        });
        jPanelTime1.add(jButtonSumMoney1);

        jPanel1.add(jPanelTime1);

        jPanelAllUser.add(jPanel1);

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jPanel2.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel2.border.titleFont"))); // NOI18N
        jPanel2.setName("jPanel2"); // NOI18N
        jPanel2.setPreferredSize(new java.awt.Dimension(250, 500));
        jPanel2.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1));

        jButtonEnable2.setFont(resourceMap.getFont("jButtonSumMoney5.font")); // NOI18N
        jButtonEnable2.setText(resourceMap.getString("jButtonEnable2.text")); // NOI18N
        jButtonEnable2.setName("jButtonEnable2"); // NOI18N
        jButtonEnable2.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonEnable2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEnable2ActionPerformed(evt);
            }
        });
        jPanel2.add(jButtonEnable2);

        jPanelTime2.setName("jPanelTime2"); // NOI18N
        jPanelTime2.setPreferredSize(new java.awt.Dimension(238, 360));
        jPanelTime2.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1));

        jLabelForBeginTime2.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForBeginTime2.setText(resourceMap.getString("jLabelForBeginTime2.text")); // NOI18N
        jLabelForBeginTime2.setEnabled(false);
        jLabelForBeginTime2.setName("jLabelForBeginTime2"); // NOI18N
        jLabelForBeginTime2.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime2.add(jLabelForBeginTime2);

        jLabelBeginTime2.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelBeginTime2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelBeginTime2.setText(resourceMap.getString("jLabelBeginTime2.text")); // NOI18N
        jLabelBeginTime2.setEnabled(false);
        jLabelBeginTime2.setName("jLabelBeginTime2"); // NOI18N
        jLabelBeginTime2.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime2.add(jLabelBeginTime2);

        jLabelForEndTime2.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForEndTime2.setText(resourceMap.getString("jLabelForEndTime2.text")); // NOI18N
        jLabelForEndTime2.setEnabled(false);
        jLabelForEndTime2.setName("jLabelForEndTime2"); // NOI18N
        jLabelForEndTime2.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime2.add(jLabelForEndTime2);

        jLabelEndTime2.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelEndTime2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelEndTime2.setText(resourceMap.getString("jLabelEndTime2.text")); // NOI18N
        jLabelEndTime2.setEnabled(false);
        jLabelEndTime2.setName("jLabelEndTime2"); // NOI18N
        jLabelEndTime2.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime2.add(jLabelEndTime2);

        jLabelSubtract2.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelSubtract2.setText(resourceMap.getString("jLabelSubtract2.text")); // NOI18N
        jLabelSubtract2.setEnabled(false);
        jLabelSubtract2.setName("jLabelSubtract2"); // NOI18N
        jLabelSubtract2.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime2.add(jLabelSubtract2);

        jComboBoxSubtractTime2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0", "1", "2", "3", "4", "5", "10", "15" }));
        jComboBoxSubtractTime2.setEnabled(false);
        jComboBoxSubtractTime2.setName("jComboBoxSubtractTime2"); // NOI18N
        jComboBoxSubtractTime2.setPreferredSize(new java.awt.Dimension(110, 24));
        jPanelTime2.add(jComboBoxSubtractTime2);

        jButtonReset2.setText(resourceMap.getString("jButtonReset2.text")); // NOI18N
        jButtonReset2.setEnabled(false);
        jButtonReset2.setName("jButtonReset2"); // NOI18N
        jButtonReset2.setPreferredSize(new java.awt.Dimension(61, 15));
        jButtonReset2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonReset2ActionPerformed(evt);
            }
        });
        jPanelTime2.add(jButtonReset2);

        jLabelTimeResult2.setFont(resourceMap.getFont("jLabelTimeResult3.font")); // NOI18N
        jLabelTimeResult2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTimeResult2.setText(resourceMap.getString("jLabelTimeResult2.text")); // NOI18N
        jLabelTimeResult2.setEnabled(false);
        jLabelTimeResult2.setName("jLabelTimeResult2"); // NOI18N
        jLabelTimeResult2.setPreferredSize(new java.awt.Dimension(160, 40));
        jPanelTime2.add(jLabelTimeResult2);

        jLabel2.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N
        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setEnabled(false);
        jLabel2.setName("jLabel2"); // NOI18N
        jLabel2.setPreferredSize(new java.awt.Dimension(100, 30));
        jPanelTime2.add(jLabel2);

        jLabelMoneyOfTime2.setFont(resourceMap.getFont("jLabelMoneyOfTime5.font")); // NOI18N
        jLabelMoneyOfTime2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelMoneyOfTime2.setText(resourceMap.getString("jLabelMoneyOfTime2.text")); // NOI18N
        jLabelMoneyOfTime2.setEnabled(false);
        jLabelMoneyOfTime2.setName("jLabelMoneyOfTime2"); // NOI18N
        jLabelMoneyOfTime2.setPreferredSize(new java.awt.Dimension(130, 30));
        jPanelTime2.add(jLabelMoneyOfTime2);

        jLabelPlus1_4.setFont(resourceMap.getFont("jLabelPlus1_4.font")); // NOI18N
        jLabelPlus1_4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_4.setText(resourceMap.getString("jLabelPlus1_4.text")); // NOI18N
        jLabelPlus1_4.setEnabled(false);
        jLabelPlus1_4.setName("jLabelPlus1_4"); // NOI18N
        jLabelPlus1_4.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime2.add(jLabelPlus1_4);

        jCheckBoxWater2.setFont(resourceMap.getFont("jCheckBoxWater2.font")); // NOI18N
        jCheckBoxWater2.setForeground(resourceMap.getColor("jCheckBoxWater2.foreground")); // NOI18N
        jCheckBoxWater2.setText(resourceMap.getString("jCheckBoxWater2.text")); // NOI18N
        jCheckBoxWater2.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxWater2.border.shadowColor"))); // NOI18N
        jCheckBoxWater2.setBorderPainted(true);
        jCheckBoxWater2.setEnabled(false);
        jCheckBoxWater2.setName("jCheckBoxWater2"); // NOI18N
        jCheckBoxWater2.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxWater2.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxWater2StateChanged(evt);
            }
        });
        jPanelTime2.add(jCheckBoxWater2);

        jComboBoxMoneyOfWater2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", "15000", "20000", "25000" }));
        jComboBoxMoneyOfWater2.setEnabled(false);
        jComboBoxMoneyOfWater2.setName("jComboBoxMoneyOfWater2"); // NOI18N
        jComboBoxMoneyOfWater2.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime2.add(jComboBoxMoneyOfWater2);

        jComboBoxNumberOfWater2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfWater2.setEnabled(false);
        jComboBoxNumberOfWater2.setName("jComboBoxNumberOfWater2"); // NOI18N
        jComboBoxNumberOfWater2.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime2.add(jComboBoxNumberOfWater2);

        jLabelPlus1_5.setFont(resourceMap.getFont("jLabelPlus1_5.font")); // NOI18N
        jLabelPlus1_5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_5.setText(resourceMap.getString("jLabelPlus1_5.text")); // NOI18N
        jLabelPlus1_5.setEnabled(false);
        jLabelPlus1_5.setName("jLabelPlus1_5"); // NOI18N
        jLabelPlus1_5.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime2.add(jLabelPlus1_5);

        jCheckBoxCafe2.setFont(resourceMap.getFont("jCheckBoxCafe2.font")); // NOI18N
        jCheckBoxCafe2.setForeground(resourceMap.getColor("jCheckBoxCafe2.foreground")); // NOI18N
        jCheckBoxCafe2.setText(resourceMap.getString("jCheckBoxCafe2.text")); // NOI18N
        jCheckBoxCafe2.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCafe2.border.shadowColor"))); // NOI18N
        jCheckBoxCafe2.setBorderPainted(true);
        jCheckBoxCafe2.setEnabled(false);
        jCheckBoxCafe2.setName("jCheckBoxCafe2"); // NOI18N
        jCheckBoxCafe2.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCafe2.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCafe2StateChanged(evt);
            }
        });
        jPanelTime2.add(jCheckBoxCafe2);

        jComboBoxMoneyOfCafe2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", " ", " " }));
        jComboBoxMoneyOfCafe2.setEnabled(false);
        jComboBoxMoneyOfCafe2.setName("jComboBoxMoneyOfCafe2"); // NOI18N
        jComboBoxMoneyOfCafe2.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime2.add(jComboBoxMoneyOfCafe2);

        jComboBoxNumberOfCafe2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCafe2.setEnabled(false);
        jComboBoxNumberOfCafe2.setName("jComboBoxNumberOfCafe2"); // NOI18N
        jComboBoxNumberOfCafe2.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime2.add(jComboBoxNumberOfCafe2);

        jLabelPlus1_6.setFont(resourceMap.getFont("jLabelPlus1_6.font")); // NOI18N
        jLabelPlus1_6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_6.setText(resourceMap.getString("jLabelPlus1_6.text")); // NOI18N
        jLabelPlus1_6.setEnabled(false);
        jLabelPlus1_6.setName("jLabelPlus1_6"); // NOI18N
        jLabelPlus1_6.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime2.add(jLabelPlus1_6);

        jCheckBoxCigarette2.setFont(resourceMap.getFont("jCheckBoxCigarette2.font")); // NOI18N
        jCheckBoxCigarette2.setForeground(resourceMap.getColor("jCheckBoxCigarette2.foreground")); // NOI18N
        jCheckBoxCigarette2.setText(resourceMap.getString("jCheckBoxCigarette2.text")); // NOI18N
        jCheckBoxCigarette2.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCigarette2.border.shadowColor"))); // NOI18N
        jCheckBoxCigarette2.setBorderPainted(true);
        jCheckBoxCigarette2.setEnabled(false);
        jCheckBoxCigarette2.setName("jCheckBoxCigarette2"); // NOI18N
        jCheckBoxCigarette2.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCigarette2.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCigarette2StateChanged(evt);
            }
        });
        jPanelTime2.add(jCheckBoxCigarette2);

        jComboBoxMoneyOfCigarette2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1000", "2000", "3000", "4000", "5000" }));
        jComboBoxMoneyOfCigarette2.setEnabled(false);
        jComboBoxMoneyOfCigarette2.setName("jComboBoxMoneyOfCigarette2"); // NOI18N
        jComboBoxMoneyOfCigarette2.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime2.add(jComboBoxMoneyOfCigarette2);

        jComboBoxNumberOfCigarette2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCigarette2.setEnabled(false);
        jComboBoxNumberOfCigarette2.setName("jComboBoxNumberOfCigarette2"); // NOI18N
        jComboBoxNumberOfCigarette2.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime2.add(jComboBoxNumberOfCigarette2);

        jButtonSumMoney2.setFont(resourceMap.getFont("jButtonSumMoney5.font")); // NOI18N
        jButtonSumMoney2.setText(resourceMap.getString("jButtonSumMoney2.text")); // NOI18N
        jButtonSumMoney2.setEnabled(false);
        jButtonSumMoney2.setName("jButtonSumMoney2"); // NOI18N
        jButtonSumMoney2.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonSumMoney2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSumMoney2ActionPerformed(evt);
            }
        });
        jPanelTime2.add(jButtonSumMoney2);

        jPanel2.add(jPanelTime2);

        jPanelAllUser.add(jPanel2);

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jPanel3.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel3.border.titleFont"))); // NOI18N
        jPanel3.setName("jPanel3"); // NOI18N
        jPanel3.setPreferredSize(new java.awt.Dimension(250, 500));
        jPanel3.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1));

        jButtonEnable3.setFont(resourceMap.getFont("jButtonSumMoney5.font")); // NOI18N
        jButtonEnable3.setText(resourceMap.getString("jButtonEnable3.text")); // NOI18N
        jButtonEnable3.setName("jButtonEnable3"); // NOI18N
        jButtonEnable3.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonEnable3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEnable3ActionPerformed(evt);
            }
        });
        jPanel3.add(jButtonEnable3);

        jPanelTime3.setName("jPanelTime3"); // NOI18N
        jPanelTime3.setPreferredSize(new java.awt.Dimension(238, 360));
        jPanelTime3.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1));

        jLabelForBeginTime3.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForBeginTime3.setText(resourceMap.getString("jLabelForBeginTime3.text")); // NOI18N
        jLabelForBeginTime3.setEnabled(false);
        jLabelForBeginTime3.setName("jLabelForBeginTime3"); // NOI18N
        jLabelForBeginTime3.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime3.add(jLabelForBeginTime3);

        jLabelBeginTime3.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelBeginTime3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelBeginTime3.setText(resourceMap.getString("jLabelBeginTime3.text")); // NOI18N
        jLabelBeginTime3.setEnabled(false);
        jLabelBeginTime3.setName("jLabelBeginTime3"); // NOI18N
        jLabelBeginTime3.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime3.add(jLabelBeginTime3);

        jLabelForEndTime3.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForEndTime3.setText(resourceMap.getString("jLabelForEndTime3.text")); // NOI18N
        jLabelForEndTime3.setEnabled(false);
        jLabelForEndTime3.setName("jLabelForEndTime3"); // NOI18N
        jLabelForEndTime3.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime3.add(jLabelForEndTime3);

        jLabelEndTime3.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelEndTime3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelEndTime3.setText(resourceMap.getString("jLabelEndTime3.text")); // NOI18N
        jLabelEndTime3.setEnabled(false);
        jLabelEndTime3.setName("jLabelEndTime3"); // NOI18N
        jLabelEndTime3.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime3.add(jLabelEndTime3);

        jLabelSubtract3.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelSubtract3.setText(resourceMap.getString("jLabelSubtract3.text")); // NOI18N
        jLabelSubtract3.setEnabled(false);
        jLabelSubtract3.setName("jLabelSubtract3"); // NOI18N
        jLabelSubtract3.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime3.add(jLabelSubtract3);

        jComboBoxSubtractTime3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0", "1", "2", "3", "4", "5", "10", "15" }));
        jComboBoxSubtractTime3.setEnabled(false);
        jComboBoxSubtractTime3.setName("jComboBoxSubtractTime3"); // NOI18N
        jComboBoxSubtractTime3.setPreferredSize(new java.awt.Dimension(110, 24));
        jPanelTime3.add(jComboBoxSubtractTime3);

        jButtonReset3.setText(resourceMap.getString("jButtonReset3.text")); // NOI18N
        jButtonReset3.setEnabled(false);
        jButtonReset3.setName("jButtonReset3"); // NOI18N
        jButtonReset3.setPreferredSize(new java.awt.Dimension(61, 15));
        jButtonReset3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonReset3ActionPerformed(evt);
            }
        });
        jPanelTime3.add(jButtonReset3);

        jLabelTimeResult3.setFont(resourceMap.getFont("jLabelTimeResult3.font")); // NOI18N
        jLabelTimeResult3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTimeResult3.setText(resourceMap.getString("jLabelTimeResult3.text")); // NOI18N
        jLabelTimeResult3.setEnabled(false);
        jLabelTimeResult3.setName("jLabelTimeResult3"); // NOI18N
        jLabelTimeResult3.setPreferredSize(new java.awt.Dimension(160, 40));
        jPanelTime3.add(jLabelTimeResult3);

        jLabel3.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N
        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setEnabled(false);
        jLabel3.setName("jLabel3"); // NOI18N
        jLabel3.setPreferredSize(new java.awt.Dimension(100, 30));
        jPanelTime3.add(jLabel3);

        jLabelMoneyOfTime3.setFont(resourceMap.getFont("jLabelMoneyOfTime5.font")); // NOI18N
        jLabelMoneyOfTime3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelMoneyOfTime3.setText(resourceMap.getString("jLabelMoneyOfTime3.text")); // NOI18N
        jLabelMoneyOfTime3.setEnabled(false);
        jLabelMoneyOfTime3.setName("jLabelMoneyOfTime3"); // NOI18N
        jLabelMoneyOfTime3.setPreferredSize(new java.awt.Dimension(130, 30));
        jPanelTime3.add(jLabelMoneyOfTime3);

        jLabelPlus1_7.setFont(resourceMap.getFont("jLabelPlus1_7.font")); // NOI18N
        jLabelPlus1_7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_7.setText(resourceMap.getString("jLabelPlus1_7.text")); // NOI18N
        jLabelPlus1_7.setEnabled(false);
        jLabelPlus1_7.setName("jLabelPlus1_7"); // NOI18N
        jLabelPlus1_7.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime3.add(jLabelPlus1_7);

        jCheckBoxWater3.setFont(resourceMap.getFont("jCheckBoxWater3.font")); // NOI18N
        jCheckBoxWater3.setForeground(resourceMap.getColor("jCheckBoxWater3.foreground")); // NOI18N
        jCheckBoxWater3.setText(resourceMap.getString("jCheckBoxWater3.text")); // NOI18N
        jCheckBoxWater3.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxWater3.border.shadowColor"))); // NOI18N
        jCheckBoxWater3.setBorderPainted(true);
        jCheckBoxWater3.setEnabled(false);
        jCheckBoxWater3.setName("jCheckBoxWater3"); // NOI18N
        jCheckBoxWater3.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxWater3.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxWater3StateChanged(evt);
            }
        });
        jPanelTime3.add(jCheckBoxWater3);

        jComboBoxMoneyOfWater3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", "15000", "20000", "25000" }));
        jComboBoxMoneyOfWater3.setEnabled(false);
        jComboBoxMoneyOfWater3.setName("jComboBoxMoneyOfWater3"); // NOI18N
        jComboBoxMoneyOfWater3.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime3.add(jComboBoxMoneyOfWater3);

        jComboBoxNumberOfWater3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfWater3.setEnabled(false);
        jComboBoxNumberOfWater3.setName("jComboBoxNumberOfWater3"); // NOI18N
        jComboBoxNumberOfWater3.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime3.add(jComboBoxNumberOfWater3);

        jLabelPlus1_8.setFont(resourceMap.getFont("jLabelPlus1_8.font")); // NOI18N
        jLabelPlus1_8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_8.setText(resourceMap.getString("jLabelPlus1_8.text")); // NOI18N
        jLabelPlus1_8.setEnabled(false);
        jLabelPlus1_8.setName("jLabelPlus1_8"); // NOI18N
        jLabelPlus1_8.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime3.add(jLabelPlus1_8);

        jCheckBoxCafe3.setFont(resourceMap.getFont("jCheckBoxCafe3.font")); // NOI18N
        jCheckBoxCafe3.setForeground(resourceMap.getColor("jCheckBoxCafe3.foreground")); // NOI18N
        jCheckBoxCafe3.setText(resourceMap.getString("jCheckBoxCafe3.text")); // NOI18N
        jCheckBoxCafe3.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCafe3.border.shadowColor"))); // NOI18N
        jCheckBoxCafe3.setBorderPainted(true);
        jCheckBoxCafe3.setEnabled(false);
        jCheckBoxCafe3.setName("jCheckBoxCafe3"); // NOI18N
        jCheckBoxCafe3.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCafe3.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCafe3StateChanged(evt);
            }
        });
        jPanelTime3.add(jCheckBoxCafe3);

        jComboBoxMoneyOfCafe3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", " ", " " }));
        jComboBoxMoneyOfCafe3.setEnabled(false);
        jComboBoxMoneyOfCafe3.setName("jComboBoxMoneyOfCafe3"); // NOI18N
        jComboBoxMoneyOfCafe3.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime3.add(jComboBoxMoneyOfCafe3);

        jComboBoxNumberOfCafe3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCafe3.setEnabled(false);
        jComboBoxNumberOfCafe3.setName("jComboBoxNumberOfCafe3"); // NOI18N
        jComboBoxNumberOfCafe3.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime3.add(jComboBoxNumberOfCafe3);

        jLabelPlus1_9.setFont(resourceMap.getFont("jLabelPlus1_9.font")); // NOI18N
        jLabelPlus1_9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_9.setText(resourceMap.getString("jLabelPlus1_9.text")); // NOI18N
        jLabelPlus1_9.setEnabled(false);
        jLabelPlus1_9.setName("jLabelPlus1_9"); // NOI18N
        jLabelPlus1_9.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime3.add(jLabelPlus1_9);

        jCheckBoxCigarette3.setFont(resourceMap.getFont("jCheckBoxCigarette3.font")); // NOI18N
        jCheckBoxCigarette3.setForeground(resourceMap.getColor("jCheckBoxCigarette3.foreground")); // NOI18N
        jCheckBoxCigarette3.setText(resourceMap.getString("jCheckBoxCigarette3.text")); // NOI18N
        jCheckBoxCigarette3.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCigarette3.border.shadowColor"))); // NOI18N
        jCheckBoxCigarette3.setBorderPainted(true);
        jCheckBoxCigarette3.setEnabled(false);
        jCheckBoxCigarette3.setName("jCheckBoxCigarette3"); // NOI18N
        jCheckBoxCigarette3.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCigarette3.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCigarette3StateChanged(evt);
            }
        });
        jPanelTime3.add(jCheckBoxCigarette3);

        jComboBoxMoneyOfCigarette3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1000", "2000", "3000", "4000", "5000" }));
        jComboBoxMoneyOfCigarette3.setEnabled(false);
        jComboBoxMoneyOfCigarette3.setName("jComboBoxMoneyOfCigarette3"); // NOI18N
        jComboBoxMoneyOfCigarette3.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime3.add(jComboBoxMoneyOfCigarette3);

        jComboBoxNumberOfCigarette3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCigarette3.setEnabled(false);
        jComboBoxNumberOfCigarette3.setName("jComboBoxNumberOfCigarette3"); // NOI18N
        jComboBoxNumberOfCigarette3.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime3.add(jComboBoxNumberOfCigarette3);

        jButtonSumMoney3.setFont(resourceMap.getFont("jButtonSumMoney5.font")); // NOI18N
        jButtonSumMoney3.setText(resourceMap.getString("jButtonSumMoney3.text")); // NOI18N
        jButtonSumMoney3.setEnabled(false);
        jButtonSumMoney3.setName("jButtonSumMoney3"); // NOI18N
        jButtonSumMoney3.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonSumMoney3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSumMoney3ActionPerformed(evt);
            }
        });
        jPanelTime3.add(jButtonSumMoney3);

        jPanel3.add(jPanelTime3);

        jPanelAllUser.add(jPanel3);

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jPanel4.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel4.border.titleFont"))); // NOI18N
        jPanel4.setName("jPanel4"); // NOI18N
        jPanel4.setPreferredSize(new java.awt.Dimension(250, 500));
        jPanel4.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1));

        jButtonEnable4.setFont(resourceMap.getFont("jButtonSumMoney5.font")); // NOI18N
        jButtonEnable4.setText(resourceMap.getString("jButtonEnable4.text")); // NOI18N
        jButtonEnable4.setName("jButtonEnable4"); // NOI18N
        jButtonEnable4.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonEnable4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEnable4ActionPerformed(evt);
            }
        });
        jPanel4.add(jButtonEnable4);

        jPanelTime4.setName("jPanelTime4"); // NOI18N
        jPanelTime4.setPreferredSize(new java.awt.Dimension(238, 360));
        jPanelTime4.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1));

        jLabelForBeginTime4.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForBeginTime4.setText(resourceMap.getString("jLabelForBeginTime4.text")); // NOI18N
        jLabelForBeginTime4.setEnabled(false);
        jLabelForBeginTime4.setName("jLabelForBeginTime4"); // NOI18N
        jLabelForBeginTime4.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime4.add(jLabelForBeginTime4);

        jLabelBeginTime4.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelBeginTime4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelBeginTime4.setText(resourceMap.getString("jLabelBeginTime4.text")); // NOI18N
        jLabelBeginTime4.setEnabled(false);
        jLabelBeginTime4.setName("jLabelBeginTime4"); // NOI18N
        jLabelBeginTime4.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime4.add(jLabelBeginTime4);

        jLabelForEndTime4.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForEndTime4.setText(resourceMap.getString("jLabelForEndTime4.text")); // NOI18N
        jLabelForEndTime4.setEnabled(false);
        jLabelForEndTime4.setName("jLabelForEndTime4"); // NOI18N
        jLabelForEndTime4.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime4.add(jLabelForEndTime4);

        jLabelEndTime4.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelEndTime4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelEndTime4.setText(resourceMap.getString("jLabelEndTime4.text")); // NOI18N
        jLabelEndTime4.setEnabled(false);
        jLabelEndTime4.setName("jLabelEndTime4"); // NOI18N
        jLabelEndTime4.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime4.add(jLabelEndTime4);

        jLabelSubtract4.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelSubtract4.setText(resourceMap.getString("jLabelSubtract4.text")); // NOI18N
        jLabelSubtract4.setEnabled(false);
        jLabelSubtract4.setName("jLabelSubtract4"); // NOI18N
        jLabelSubtract4.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime4.add(jLabelSubtract4);

        jComboBoxSubtractTime4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0", "1", "2", "3", "4", "5", "10", "15" }));
        jComboBoxSubtractTime4.setEnabled(false);
        jComboBoxSubtractTime4.setName("jComboBoxSubtractTime4"); // NOI18N
        jComboBoxSubtractTime4.setPreferredSize(new java.awt.Dimension(110, 24));
        jPanelTime4.add(jComboBoxSubtractTime4);

        jButtonReset4.setText(resourceMap.getString("jButtonReset4.text")); // NOI18N
        jButtonReset4.setEnabled(false);
        jButtonReset4.setName("jButtonReset4"); // NOI18N
        jButtonReset4.setPreferredSize(new java.awt.Dimension(61, 15));
        jButtonReset4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonReset4ActionPerformed(evt);
            }
        });
        jPanelTime4.add(jButtonReset4);

        jLabelTimeResult4.setFont(resourceMap.getFont("jLabelTimeResult3.font")); // NOI18N
        jLabelTimeResult4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTimeResult4.setText(resourceMap.getString("jLabelTimeResult4.text")); // NOI18N
        jLabelTimeResult4.setEnabled(false);
        jLabelTimeResult4.setName("jLabelTimeResult4"); // NOI18N
        jLabelTimeResult4.setPreferredSize(new java.awt.Dimension(160, 40));
        jPanelTime4.add(jLabelTimeResult4);

        jLabel4.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N
        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setEnabled(false);
        jLabel4.setName("jLabel4"); // NOI18N
        jLabel4.setPreferredSize(new java.awt.Dimension(100, 30));
        jPanelTime4.add(jLabel4);

        jLabelMoneyOfTime4.setFont(resourceMap.getFont("jLabelMoneyOfTime5.font")); // NOI18N
        jLabelMoneyOfTime4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelMoneyOfTime4.setText(resourceMap.getString("jLabelMoneyOfTime4.text")); // NOI18N
        jLabelMoneyOfTime4.setEnabled(false);
        jLabelMoneyOfTime4.setName("jLabelMoneyOfTime4"); // NOI18N
        jLabelMoneyOfTime4.setPreferredSize(new java.awt.Dimension(130, 30));
        jPanelTime4.add(jLabelMoneyOfTime4);

        jLabelPlus1_10.setFont(resourceMap.getFont("jLabelPlus1_10.font")); // NOI18N
        jLabelPlus1_10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_10.setText(resourceMap.getString("jLabelPlus1_10.text")); // NOI18N
        jLabelPlus1_10.setEnabled(false);
        jLabelPlus1_10.setName("jLabelPlus1_10"); // NOI18N
        jLabelPlus1_10.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime4.add(jLabelPlus1_10);

        jCheckBoxWater4.setFont(resourceMap.getFont("jCheckBoxWater4.font")); // NOI18N
        jCheckBoxWater4.setForeground(resourceMap.getColor("jCheckBoxWater4.foreground")); // NOI18N
        jCheckBoxWater4.setText(resourceMap.getString("jCheckBoxWater4.text")); // NOI18N
        jCheckBoxWater4.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxWater4.border.shadowColor"))); // NOI18N
        jCheckBoxWater4.setBorderPainted(true);
        jCheckBoxWater4.setEnabled(false);
        jCheckBoxWater4.setName("jCheckBoxWater4"); // NOI18N
        jCheckBoxWater4.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxWater4.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxWater4StateChanged(evt);
            }
        });
        jPanelTime4.add(jCheckBoxWater4);

        jComboBoxMoneyOfWater4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", "15000", "20000", "25000" }));
        jComboBoxMoneyOfWater4.setEnabled(false);
        jComboBoxMoneyOfWater4.setName("jComboBoxMoneyOfWater4"); // NOI18N
        jComboBoxMoneyOfWater4.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime4.add(jComboBoxMoneyOfWater4);

        jComboBoxNumberOfWater4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfWater4.setEnabled(false);
        jComboBoxNumberOfWater4.setName("jComboBoxNumberOfWater4"); // NOI18N
        jComboBoxNumberOfWater4.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime4.add(jComboBoxNumberOfWater4);

        jLabelPlus1_11.setFont(resourceMap.getFont("jLabelPlus1_11.font")); // NOI18N
        jLabelPlus1_11.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_11.setText(resourceMap.getString("jLabelPlus1_11.text")); // NOI18N
        jLabelPlus1_11.setEnabled(false);
        jLabelPlus1_11.setName("jLabelPlus1_11"); // NOI18N
        jLabelPlus1_11.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime4.add(jLabelPlus1_11);

        jCheckBoxCafe4.setFont(resourceMap.getFont("jCheckBoxCafe4.font")); // NOI18N
        jCheckBoxCafe4.setForeground(resourceMap.getColor("jCheckBoxCafe4.foreground")); // NOI18N
        jCheckBoxCafe4.setText(resourceMap.getString("jCheckBoxCafe4.text")); // NOI18N
        jCheckBoxCafe4.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCafe4.border.shadowColor"))); // NOI18N
        jCheckBoxCafe4.setBorderPainted(true);
        jCheckBoxCafe4.setEnabled(false);
        jCheckBoxCafe4.setName("jCheckBoxCafe4"); // NOI18N
        jCheckBoxCafe4.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCafe4.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCafe4StateChanged(evt);
            }
        });
        jPanelTime4.add(jCheckBoxCafe4);

        jComboBoxMoneyOfCafe4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", " ", " " }));
        jComboBoxMoneyOfCafe4.setEnabled(false);
        jComboBoxMoneyOfCafe4.setName("jComboBoxMoneyOfCafe4"); // NOI18N
        jComboBoxMoneyOfCafe4.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime4.add(jComboBoxMoneyOfCafe4);

        jComboBoxNumberOfCafe4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCafe4.setEnabled(false);
        jComboBoxNumberOfCafe4.setName("jComboBoxNumberOfCafe4"); // NOI18N
        jComboBoxNumberOfCafe4.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime4.add(jComboBoxNumberOfCafe4);

        jLabelPlus1_12.setFont(resourceMap.getFont("jLabelPlus1_12.font")); // NOI18N
        jLabelPlus1_12.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_12.setText(resourceMap.getString("jLabelPlus1_12.text")); // NOI18N
        jLabelPlus1_12.setEnabled(false);
        jLabelPlus1_12.setName("jLabelPlus1_12"); // NOI18N
        jLabelPlus1_12.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime4.add(jLabelPlus1_12);

        jCheckBoxCigarette4.setFont(resourceMap.getFont("jCheckBoxCigarette4.font")); // NOI18N
        jCheckBoxCigarette4.setForeground(resourceMap.getColor("jCheckBoxCigarette4.foreground")); // NOI18N
        jCheckBoxCigarette4.setText(resourceMap.getString("jCheckBoxCigarette4.text")); // NOI18N
        jCheckBoxCigarette4.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCigarette4.border.shadowColor"))); // NOI18N
        jCheckBoxCigarette4.setBorderPainted(true);
        jCheckBoxCigarette4.setEnabled(false);
        jCheckBoxCigarette4.setName("jCheckBoxCigarette4"); // NOI18N
        jCheckBoxCigarette4.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCigarette4.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCigarette4StateChanged(evt);
            }
        });
        jPanelTime4.add(jCheckBoxCigarette4);

        jComboBoxMoneyOfCigarette4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1000", "2000", "3000", "4000", "5000" }));
        jComboBoxMoneyOfCigarette4.setEnabled(false);
        jComboBoxMoneyOfCigarette4.setName("jComboBoxMoneyOfCigarette4"); // NOI18N
        jComboBoxMoneyOfCigarette4.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime4.add(jComboBoxMoneyOfCigarette4);

        jComboBoxNumberOfCigarette4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCigarette4.setEnabled(false);
        jComboBoxNumberOfCigarette4.setName("jComboBoxNumberOfCigarette4"); // NOI18N
        jComboBoxNumberOfCigarette4.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime4.add(jComboBoxNumberOfCigarette4);

        jButtonSumMoney4.setFont(resourceMap.getFont("jButtonSumMoney5.font")); // NOI18N
        jButtonSumMoney4.setText(resourceMap.getString("jButtonSumMoney4.text")); // NOI18N
        jButtonSumMoney4.setEnabled(false);
        jButtonSumMoney4.setName("jButtonSumMoney4"); // NOI18N
        jButtonSumMoney4.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonSumMoney4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSumMoney4ActionPerformed(evt);
            }
        });
        jPanelTime4.add(jButtonSumMoney4);

        jPanel4.add(jPanelTime4);

        jPanelAllUser.add(jPanel4);

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jPanel5.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel5.border.titleFont"))); // NOI18N
        jPanel5.setName("jPanel5"); // NOI18N
        jPanel5.setPreferredSize(new java.awt.Dimension(250, 500));
        jPanel5.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1));

        jButtonEnable5.setFont(resourceMap.getFont("jButtonSumMoney5.font")); // NOI18N
        jButtonEnable5.setText(resourceMap.getString("jButtonEnable5.text")); // NOI18N
        jButtonEnable5.setName("jButtonEnable5"); // NOI18N
        jButtonEnable5.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonEnable5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEnable5ActionPerformed(evt);
            }
        });
        jPanel5.add(jButtonEnable5);

        jPanelTime5.setName("jPanelTime5"); // NOI18N
        jPanelTime5.setPreferredSize(new java.awt.Dimension(238, 360));
        jPanelTime5.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1));

        jLabelForBeginTime5.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForBeginTime5.setText(resourceMap.getString("jLabelForBeginTime5.text")); // NOI18N
        jLabelForBeginTime5.setEnabled(false);
        jLabelForBeginTime5.setName("jLabelForBeginTime5"); // NOI18N
        jLabelForBeginTime5.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime5.add(jLabelForBeginTime5);

        jLabelBeginTime5.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelBeginTime5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelBeginTime5.setText(resourceMap.getString("jLabelBeginTime5.text")); // NOI18N
        jLabelBeginTime5.setEnabled(false);
        jLabelBeginTime5.setName("jLabelBeginTime5"); // NOI18N
        jLabelBeginTime5.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime5.add(jLabelBeginTime5);

        jLabelForEndTime5.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelForEndTime5.setText(resourceMap.getString("jLabelForEndTime5.text")); // NOI18N
        jLabelForEndTime5.setEnabled(false);
        jLabelForEndTime5.setName("jLabelForEndTime5"); // NOI18N
        jLabelForEndTime5.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime5.add(jLabelForEndTime5);

        jLabelEndTime5.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelEndTime5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelEndTime5.setText(resourceMap.getString("jLabelEndTime5.text")); // NOI18N
        jLabelEndTime5.setEnabled(false);
        jLabelEndTime5.setName("jLabelEndTime5"); // NOI18N
        jLabelEndTime5.setPreferredSize(new java.awt.Dimension(110, 20));
        jPanelTime5.add(jLabelEndTime5);

        jLabelSubtract5.setFont(resourceMap.getFont("jLabelSubtract4.font")); // NOI18N
        jLabelSubtract5.setText(resourceMap.getString("jLabelSubtract5.text")); // NOI18N
        jLabelSubtract5.setEnabled(false);
        jLabelSubtract5.setName("jLabelSubtract5"); // NOI18N
        jLabelSubtract5.setPreferredSize(new java.awt.Dimension(115, 20));
        jPanelTime5.add(jLabelSubtract5);

        jComboBoxSubtractTime5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0", "1", "2", "3", "4", "5", "10", "15" }));
        jComboBoxSubtractTime5.setEnabled(false);
        jComboBoxSubtractTime5.setName("jComboBoxSubtractTime5"); // NOI18N
        jComboBoxSubtractTime5.setPreferredSize(new java.awt.Dimension(110, 24));
        jPanelTime5.add(jComboBoxSubtractTime5);

        jButtonReset5.setText(resourceMap.getString("jButtonReset5.text")); // NOI18N
        jButtonReset5.setEnabled(false);
        jButtonReset5.setName("jButtonReset5"); // NOI18N
        jButtonReset5.setPreferredSize(new java.awt.Dimension(61, 15));
        jButtonReset5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonReset5ActionPerformed(evt);
            }
        });
        jPanelTime5.add(jButtonReset5);

        jLabelTimeResult5.setFont(resourceMap.getFont("jLabelTimeResult3.font")); // NOI18N
        jLabelTimeResult5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTimeResult5.setText(resourceMap.getString("jLabelTimeResult5.text")); // NOI18N
        jLabelTimeResult5.setEnabled(false);
        jLabelTimeResult5.setName("jLabelTimeResult5"); // NOI18N
        jLabelTimeResult5.setPreferredSize(new java.awt.Dimension(160, 40));
        jPanelTime5.add(jLabelTimeResult5);

        jLabel5.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N
        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setEnabled(false);
        jLabel5.setName("jLabel5"); // NOI18N
        jLabel5.setPreferredSize(new java.awt.Dimension(100, 30));
        jPanelTime5.add(jLabel5);

        jLabelMoneyOfTime5.setFont(resourceMap.getFont("jLabelMoneyOfTime5.font")); // NOI18N
        jLabelMoneyOfTime5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelMoneyOfTime5.setText(resourceMap.getString("jLabelMoneyOfTime5.text")); // NOI18N
        jLabelMoneyOfTime5.setEnabled(false);
        jLabelMoneyOfTime5.setName("jLabelMoneyOfTime5"); // NOI18N
        jLabelMoneyOfTime5.setPreferredSize(new java.awt.Dimension(130, 30));
        jPanelTime5.add(jLabelMoneyOfTime5);

        jLabelPlus1_13.setFont(resourceMap.getFont("jLabelPlus1_13.font")); // NOI18N
        jLabelPlus1_13.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_13.setText(resourceMap.getString("jLabelPlus1_13.text")); // NOI18N
        jLabelPlus1_13.setEnabled(false);
        jLabelPlus1_13.setName("jLabelPlus1_13"); // NOI18N
        jLabelPlus1_13.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime5.add(jLabelPlus1_13);

        jCheckBoxWater5.setFont(resourceMap.getFont("jCheckBoxWater5.font")); // NOI18N
        jCheckBoxWater5.setForeground(resourceMap.getColor("jCheckBoxWater5.foreground")); // NOI18N
        jCheckBoxWater5.setText(resourceMap.getString("jCheckBoxWater5.text")); // NOI18N
        jCheckBoxWater5.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxWater5.border.shadowColor"))); // NOI18N
        jCheckBoxWater5.setBorderPainted(true);
        jCheckBoxWater5.setEnabled(false);
        jCheckBoxWater5.setName("jCheckBoxWater5"); // NOI18N
        jCheckBoxWater5.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxWater5.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxWater5StateChanged(evt);
            }
        });
        jPanelTime5.add(jCheckBoxWater5);

        jComboBoxMoneyOfWater5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", "15000", "20000", "25000" }));
        jComboBoxMoneyOfWater5.setEnabled(false);
        jComboBoxMoneyOfWater5.setName("jComboBoxMoneyOfWater5"); // NOI18N
        jComboBoxMoneyOfWater5.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime5.add(jComboBoxMoneyOfWater5);

        jComboBoxNumberOfWater5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfWater5.setEnabled(false);
        jComboBoxNumberOfWater5.setName("jComboBoxNumberOfWater5"); // NOI18N
        jComboBoxNumberOfWater5.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime5.add(jComboBoxNumberOfWater5);

        jLabelPlus1_14.setFont(resourceMap.getFont("jLabelPlus1_14.font")); // NOI18N
        jLabelPlus1_14.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_14.setText(resourceMap.getString("jLabelPlus1_14.text")); // NOI18N
        jLabelPlus1_14.setEnabled(false);
        jLabelPlus1_14.setName("jLabelPlus1_14"); // NOI18N
        jLabelPlus1_14.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime5.add(jLabelPlus1_14);

        jCheckBoxCafe5.setFont(resourceMap.getFont("jCheckBoxCafe5.font")); // NOI18N
        jCheckBoxCafe5.setForeground(resourceMap.getColor("jCheckBoxCafe5.foreground")); // NOI18N
        jCheckBoxCafe5.setText(resourceMap.getString("jCheckBoxCafe5.text")); // NOI18N
        jCheckBoxCafe5.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCafe5.border.shadowColor"))); // NOI18N
        jCheckBoxCafe5.setBorderPainted(true);
        jCheckBoxCafe5.setEnabled(false);
        jCheckBoxCafe5.setName("jCheckBoxCafe5"); // NOI18N
        jCheckBoxCafe5.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCafe5.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCafe5StateChanged(evt);
            }
        });
        jPanelTime5.add(jCheckBoxCafe5);

        jComboBoxMoneyOfCafe5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "5000", "6000", "7000", "8000", "9000", "10000", " ", " " }));
        jComboBoxMoneyOfCafe5.setEnabled(false);
        jComboBoxMoneyOfCafe5.setName("jComboBoxMoneyOfCafe5"); // NOI18N
        jComboBoxMoneyOfCafe5.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime5.add(jComboBoxMoneyOfCafe5);

        jComboBoxNumberOfCafe5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCafe5.setEnabled(false);
        jComboBoxNumberOfCafe5.setName("jComboBoxNumberOfCafe5"); // NOI18N
        jComboBoxNumberOfCafe5.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime5.add(jComboBoxNumberOfCafe5);

        jLabelPlus1_15.setFont(resourceMap.getFont("jLabelPlus1_15.font")); // NOI18N
        jLabelPlus1_15.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelPlus1_15.setText(resourceMap.getString("jLabelPlus1_15.text")); // NOI18N
        jLabelPlus1_15.setEnabled(false);
        jLabelPlus1_15.setName("jLabelPlus1_15"); // NOI18N
        jLabelPlus1_15.setPreferredSize(new java.awt.Dimension(230, 12));
        jPanelTime5.add(jLabelPlus1_15);

        jCheckBoxCigarette5.setFont(resourceMap.getFont("jCheckBoxCigarette5.font")); // NOI18N
        jCheckBoxCigarette5.setForeground(resourceMap.getColor("jCheckBoxCigarette5.foreground")); // NOI18N
        jCheckBoxCigarette5.setText(resourceMap.getString("jCheckBoxCigarette5.text")); // NOI18N
        jCheckBoxCigarette5.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jCheckBoxCigarette5.border.shadowColor"))); // NOI18N
        jCheckBoxCigarette5.setBorderPainted(true);
        jCheckBoxCigarette5.setEnabled(false);
        jCheckBoxCigarette5.setName("jCheckBoxCigarette5"); // NOI18N
        jCheckBoxCigarette5.setPreferredSize(new java.awt.Dimension(110, 25));
        jCheckBoxCigarette5.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxCigarette5StateChanged(evt);
            }
        });
        jPanelTime5.add(jCheckBoxCigarette5);

        jComboBoxMoneyOfCigarette5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1000", "2000", "3000", "4000", "5000" }));
        jComboBoxMoneyOfCigarette5.setEnabled(false);
        jComboBoxMoneyOfCigarette5.setName("jComboBoxMoneyOfCigarette5"); // NOI18N
        jComboBoxMoneyOfCigarette5.setPreferredSize(new java.awt.Dimension(75, 25));
        jPanelTime5.add(jComboBoxMoneyOfCigarette5);

        jComboBoxNumberOfCigarette5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7" }));
        jComboBoxNumberOfCigarette5.setEnabled(false);
        jComboBoxNumberOfCigarette5.setName("jComboBoxNumberOfCigarette5"); // NOI18N
        jComboBoxNumberOfCigarette5.setPreferredSize(new java.awt.Dimension(50, 25));
        jPanelTime5.add(jComboBoxNumberOfCigarette5);

        jButtonSumMoney5.setFont(resourceMap.getFont("jButtonSumMoney5.font")); // NOI18N
        jButtonSumMoney5.setText(resourceMap.getString("jButtonSumMoney5.text")); // NOI18N
        jButtonSumMoney5.setEnabled(false);
        jButtonSumMoney5.setName("jButtonSumMoney5"); // NOI18N
        jButtonSumMoney5.setPreferredSize(new java.awt.Dimension(200, 90));
        jButtonSumMoney5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSumMoney5ActionPerformed(evt);
            }
        });
        jPanelTime5.add(jButtonSumMoney5);

        jPanel5.add(jPanelTime5);

        jPanelAllUser.add(jPanel5);

        mainPanel.add(jPanelAllUser);

        jPanelTheme.setName("jPanelTheme"); // NOI18N
        jPanelTheme.setPreferredSize(new java.awt.Dimension(1240, 50));
        jPanelTheme.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 0, 0));

        jPanelMoveableIAPExpand.setPreferredSize(new java.awt.Dimension(600, 50));
        jPanelMoveableIAPExpand.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 2, 0));

        jButtonMinimize.setIcon(resourceMap.getIcon("jButtonMinimize.icon")); // NOI18N
        jButtonMinimize.setPreferredSize(new java.awt.Dimension(246, 49));
        jButtonMinimize.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonMinimizeActionPerformed(evt);
            }
        });
        jPanelMoveableIAPExpand.add(jButtonMinimize);

        jButtonFocus.setIcon(resourceMap.getIcon("jButtonFocus.icon")); // NOI18N
        jButtonFocus.setPreferredSize(new java.awt.Dimension(248, 49));
        jButtonFocus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonFocusActionPerformed(evt);
            }
        });
        jPanelMoveableIAPExpand.add(jButtonFocus);

        jPanelTheme.add(jPanelMoveableIAPExpand);

        buttonGroup1.add(jRadioButtonDefaultLF);
        jRadioButtonDefaultLF.setFont(resourceMap.getFont("jRadioButtonNimbus.font")); // NOI18N
        jRadioButtonDefaultLF.setText(resourceMap.getString("jRadioButtonDefaultLF.text")); // NOI18N
        jRadioButtonDefaultLF.setName("jRadioButtonDefaultLF"); // NOI18N
        jRadioButtonDefaultLF.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonDefaultLFActionPerformed(evt);
            }
        });
        jPanelTheme.add(jRadioButtonDefaultLF);

        buttonGroup1.add(jRadioButtonNimbus);
        jRadioButtonNimbus.setFont(resourceMap.getFont("jRadioButtonNimbus.font")); // NOI18N
        jRadioButtonNimbus.setSelected(true);
        jRadioButtonNimbus.setText(resourceMap.getString("jRadioButtonNimbus.text")); // NOI18N
        jRadioButtonNimbus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonNimbusActionPerformed(evt);
            }
        });
        jPanelTheme.add(jRadioButtonNimbus);

        buttonGroup1.add(jRadioButtonAluminium);
        jRadioButtonAluminium.setFont(resourceMap.getFont("jRadioButtonNimbus.font")); // NOI18N
        jRadioButtonAluminium.setText(resourceMap.getString("jRadioButtonAluminium.text")); // NOI18N
        jRadioButtonAluminium.setName("jRadioButtonAluminium"); // NOI18N
        jRadioButtonAluminium.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonAluminiumActionPerformed(evt);
            }
        });
        jPanelTheme.add(jRadioButtonAluminium);

        buttonGroup1.add(jRadioButtonGraphite);
        jRadioButtonGraphite.setFont(resourceMap.getFont("jRadioButtonNimbus.font")); // NOI18N
        jRadioButtonGraphite.setText(resourceMap.getString("jRadioButtonGraphite.text")); // NOI18N
        jRadioButtonGraphite.setName("jRadioButtonGraphite"); // NOI18N
        jRadioButtonGraphite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonGraphiteActionPerformed(evt);
            }
        });
        jPanelTheme.add(jRadioButtonGraphite);

        buttonGroup1.add(jRadioButtonMint);
        jRadioButtonMint.setFont(resourceMap.getFont("jRadioButtonNimbus.font")); // NOI18N
        jRadioButtonMint.setText(resourceMap.getString("jRadioButtonMint.text")); // NOI18N
        jRadioButtonMint.setName("jRadioButtonMint"); // NOI18N
        jRadioButtonMint.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonMintActionPerformed(evt);
            }
        });
        jPanelTheme.add(jRadioButtonMint);

        buttonGroup1.add(jRadioButtonNoire);
        jRadioButtonNoire.setFont(resourceMap.getFont("jRadioButtonNimbus.font")); // NOI18N
        jRadioButtonNoire.setText(resourceMap.getString("jRadioButtonNoire.text")); // NOI18N
        jRadioButtonNoire.setName("jRadioButtonNoire"); // NOI18N
        jRadioButtonNoire.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonNoireActionPerformed(evt);
            }
        });
        jPanelTheme.add(jRadioButtonNoire);

        buttonGroup1.add(jRadioButtonAcryl);
        jRadioButtonAcryl.setFont(resourceMap.getFont("jRadioButtonNimbus.font")); // NOI18N
        jRadioButtonAcryl.setText(resourceMap.getString("jRadioButtonAcryl.text")); // NOI18N
        jRadioButtonAcryl.setName("jRadioButtonAcryl"); // NOI18N
        jRadioButtonAcryl.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonAcrylActionPerformed(evt);
            }
        });
        jPanelTheme.add(jRadioButtonAcryl);

        jCheckBoxEnablePrice.setLabel(resourceMap.getString("jCheckBoxEnablePrice.label")); // NOI18N
        jCheckBoxEnablePrice.setName("jCheckBoxEnablePrice"); // NOI18N
        jCheckBoxEnablePrice.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jCheckBoxEnablePriceStateChanged(evt);
            }
        });
        jPanelTheme.add(jCheckBoxEnablePrice);

        jTextFieldPricePerMinute.setText(resourceMap.getString("jTextFieldPricePerMinute.text")); // NOI18N
        jTextFieldPricePerMinute.setEnabled(false);
        jTextFieldPricePerMinute.setName("jTextFieldPricePerMinute"); // NOI18N
        jTextFieldPricePerMinute.setPreferredSize(new java.awt.Dimension(100, 25));
        jPanelTheme.add(jTextFieldPricePerMinute);

        jLabelExit3.setIcon(resourceMap.getIcon("jLabelExit3.icon")); // NOI18N
        jLabelExit3.setName("jLabelExit3"); // NOI18N
        jLabelExit3.setPreferredSize(new java.awt.Dimension(25, 25));
        jLabelExit3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabelExit3MouseClicked(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jLabelExit3MouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jLabelExit3MousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jLabelExit3MouseReleased(evt);
            }
        });
        jPanelTheme.add(jLabelExit3);

        mainPanel.add(jPanelTheme);

        setComponent(mainPanel);
    }// </editor-fold>//GEN-END:initComponents
    private void jButtonMinimizeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonMinimizeActionPerformed
        frame.setSize(new java.awt.Dimension(width, height));
        frame.setPreferredSize(new java.awt.Dimension(width, height));
        frame.setVisible(false);
        tray = tray + 1;
        
}//GEN-LAST:event_jButtonMinimizeActionPerformed
    private void jButtonFocusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFocusActionPerformed
        ChangeFocus();
}//GEN-LAST:event_jButtonFocusActionPerformed
    private void jPanelAllUserComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_jPanelAllUserComponentShown
        frame.setFocusableWindowState(false);
    }//GEN-LAST:event_jPanelAllUserComponentShown
    private void jRadioButtonNimbusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonNimbusActionPerformed
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(PS4View.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(PS4View.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(PS4View.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(PS4View.class.getName()).log(Level.SEVERE, null, ex);
        }
        SwingUtilities.updateComponentTreeUI(frame);
        frame.pack();
    }//GEN-LAST:event_jRadioButtonNimbusActionPerformed
    private void jRadioButtonDefaultLFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonDefaultLFActionPerformed
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
        } catch (ClassNotFoundException ex) {
        } catch (InstantiationException ex) {
        } catch (IllegalAccessException ex) {
        } catch (UnsupportedLookAndFeelException ex) {
        }
        SwingUtilities.updateComponentTreeUI(frame);
        frame.pack();
    }//GEN-LAST:event_jRadioButtonDefaultLFActionPerformed
    private void jRadioButtonAluminiumActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonAluminiumActionPerformed
        try {
            UIManager.setLookAndFeel("com.jtattoo.plaf.aluminium.AluminiumLookAndFeel");
        } catch (ClassNotFoundException ex) {
        } catch (InstantiationException ex) {
        } catch (IllegalAccessException ex) {
        } catch (UnsupportedLookAndFeelException ex) {
        }
        SwingUtilities.updateComponentTreeUI(frame);
        frame.pack();
    }//GEN-LAST:event_jRadioButtonAluminiumActionPerformed
    private void jRadioButtonGraphiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonGraphiteActionPerformed
        try {
            UIManager.setLookAndFeel("com.jtattoo.plaf.graphite.GraphiteLookAndFeel");
        } catch (ClassNotFoundException ex) {
        } catch (InstantiationException ex) {
        } catch (IllegalAccessException ex) {
        } catch (UnsupportedLookAndFeelException ex) {
        }
        SwingUtilities.updateComponentTreeUI(frame);
        frame.pack();
    }//GEN-LAST:event_jRadioButtonGraphiteActionPerformed
    private void jRadioButtonMintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonMintActionPerformed
        try {
            UIManager.setLookAndFeel("com.jtattoo.plaf.mint.MintLookAndFeel");//dep
        } catch (ClassNotFoundException ex) {
        } catch (InstantiationException ex) {
        } catch (IllegalAccessException ex) {
        } catch (UnsupportedLookAndFeelException ex) {
        }
        SwingUtilities.updateComponentTreeUI(frame);
        frame.pack();
    }//GEN-LAST:event_jRadioButtonMintActionPerformed
    private void jRadioButtonNoireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonNoireActionPerformed
        try {
            UIManager.setLookAndFeel("com.jtattoo.plaf.noire.NoireLookAndFeel");//hightlight
        } catch (ClassNotFoundException ex) {
        } catch (InstantiationException ex) {
        } catch (IllegalAccessException ex) {
        } catch (UnsupportedLookAndFeelException ex) {
        }
        SwingUtilities.updateComponentTreeUI(frame);
        frame.pack();
    }//GEN-LAST:event_jRadioButtonNoireActionPerformed
    private void jRadioButtonAcrylActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonAcrylActionPerformed
        try {
            UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
        } catch (ClassNotFoundException ex) {
        } catch (InstantiationException ex) {
        } catch (IllegalAccessException ex) {
        } catch (UnsupportedLookAndFeelException ex) {
        }
        SwingUtilities.updateComponentTreeUI(frame);
        frame.pack();
    }//GEN-LAST:event_jRadioButtonAcrylActionPerformed
    private void jLabelExit3MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabelExit3MouseExited
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ps4.PS4.class).getContext().getResourceMap(PS4View.class);
        jLabelExit3.setIcon(resourceMap.getIcon("jLabelExit3.icon"));
    }//GEN-LAST:event_jLabelExit3MouseExited
    private void jLabelExit3MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabelExit3MouseReleased
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ps4.PS4.class).getContext().getResourceMap(PS4View.class);
        jLabelExit3.setIcon(resourceMap.getIcon("jLabelExit3.icon"));
    }//GEN-LAST:event_jLabelExit3MouseReleased
    private void jLabelExit3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabelExit3MouseClicked
        exit();
        //frame.setVisible(false);
        //removetrayicon();
    }//GEN-LAST:event_jLabelExit3MouseClicked
    private void jLabelExit3MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabelExit3MousePressed
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ps4.PS4.class).getContext().getResourceMap(PS4View.class);
        jLabelExit3.setIcon(resourceMap.getIcon("jLabelExit3.icon2"));
    }//GEN-LAST:event_jLabelExit3MousePressed
    private void jButtonEnable1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEnable1ActionPerformed

        BeginAUser(jPanel1,jPanelTime1); 
        Calendar now = Calendar.getInstance();
        beginHour1 = now.get(Calendar.HOUR_OF_DAY);
        beginMinute1 = now.get(Calendar.MINUTE);
        SetBeginTime(jLabelBeginTime1,beginHour1,beginMinute1);
        jButtonEnable1.setText(beginHour1+":"+beginMinute1);
        
    }//GEN-LAST:event_jButtonEnable1ActionPerformed
    private void jButtonReset1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonReset1ActionPerformed
        ResetAUser(jPanel1,jPanelTime1); 
        ResetToDefaultValue(jLabelBeginTime1,jLabelEndTime1,jLabelTimeResult1,jLabelMoneyOfTime1,jCheckBoxCafe1,jCheckBoxCigarette1,jCheckBoxWater1,jComboBoxMoneyOfCafe1,jComboBoxMoneyOfCigarette1,jComboBoxMoneyOfWater1,jComboBoxNumberOfCafe1,jComboBoxNumberOfCigarette1,jComboBoxNumberOfWater1,jComboBoxSubtractTime1);
        jButtonEnable1.setText("Begin");
        jButtonSumMoney1.setText("End");
    }//GEN-LAST:event_jButtonReset1ActionPerformed
    private void jCheckBoxWater1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxWater1StateChanged
    checkboxStateChangeWater(jCheckBoxWater1,jPanelTime1);
    }//GEN-LAST:event_jCheckBoxWater1StateChanged
    private void jCheckBoxCafe1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCafe1StateChanged
    checkboxStateChangeCafe(jCheckBoxCafe1,jPanelTime1);
    }//GEN-LAST:event_jCheckBoxCafe1StateChanged
    private void jCheckBoxCigarette1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCigarette1StateChanged
    checkboxStateChangeCigarette(jCheckBoxCigarette1,jPanelTime1);
    }//GEN-LAST:event_jCheckBoxCigarette1StateChanged
    private void jButtonSumMoney1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSumMoney1ActionPerformed
        GetResult(jLabelEndTime1,jLabelTimeResult1,jLabelMoneyOfTime1,beginHour1,beginMinute1,jComboBoxSubtractTime1,jComboBoxMoneyOfWater1,jComboBoxNumberOfWater1,jComboBoxMoneyOfCafe1,jComboBoxNumberOfCafe1,jComboBoxMoneyOfCigarette1,jComboBoxNumberOfCigarette1,jCheckBoxWater1,jCheckBoxCafe1,jCheckBoxCigarette1,jButtonSumMoney1);
        
    }//GEN-LAST:event_jButtonSumMoney1ActionPerformed
    private void jCheckBoxEnablePriceStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxEnablePriceStateChanged
        if(jCheckBoxEnablePrice.isSelected()==true){
        jTextFieldPricePerMinute.setEnabled(true);
        }
        else {
        jTextFieldPricePerMinute.setEnabled(false);
        }
    }//GEN-LAST:event_jCheckBoxEnablePriceStateChanged
    private void jButtonEnable2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEnable2ActionPerformed
BeginAUser(jPanel2,jPanelTime2); 
        Calendar now = Calendar.getInstance();
        beginHour2 = now.get(Calendar.HOUR_OF_DAY);
        beginMinute2 = now.get(Calendar.MINUTE);
        SetBeginTime(jLabelBeginTime2,beginHour2,beginMinute2);
        jButtonEnable2.setText(beginHour2+":"+beginMinute2);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonEnable2ActionPerformed
    private void jButtonReset2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonReset2ActionPerformed
        ResetAUser(jPanel2,jPanelTime2); 
        ResetToDefaultValue(jLabelBeginTime2,jLabelEndTime2,jLabelTimeResult2,jLabelMoneyOfTime2,jCheckBoxCafe2,jCheckBoxCigarette2,jCheckBoxWater2,jComboBoxMoneyOfCafe2,jComboBoxMoneyOfCigarette2,jComboBoxMoneyOfWater2,jComboBoxNumberOfCafe2,jComboBoxNumberOfCigarette2,jComboBoxNumberOfWater2,jComboBoxSubtractTime2);
        jButtonEnable2.setText("Begin");
        jButtonSumMoney2.setText("End");
		        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonReset2ActionPerformed
    private void jCheckBoxWater2StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxWater2StateChanged
    checkboxStateChangeWater(jCheckBoxWater2,jPanelTime2);
    }//GEN-LAST:event_jCheckBoxWater2StateChanged
    private void jCheckBoxCafe2StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCafe2StateChanged
    checkboxStateChangeCafe(jCheckBoxCafe2,jPanelTime2);
    }//GEN-LAST:event_jCheckBoxCafe2StateChanged
    private void jCheckBoxCigarette2StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCigarette2StateChanged
    checkboxStateChangeCigarette(jCheckBoxCigarette2,jPanelTime2);
    }//GEN-LAST:event_jCheckBoxCigarette2StateChanged
    private void jButtonSumMoney2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSumMoney2ActionPerformed
GetResult(jLabelEndTime2,jLabelTimeResult2,jLabelMoneyOfTime2,beginHour2,beginMinute2,jComboBoxSubtractTime2,jComboBoxMoneyOfWater2,jComboBoxNumberOfWater2,jComboBoxMoneyOfCafe2,jComboBoxNumberOfCafe2,jComboBoxMoneyOfCigarette2,jComboBoxNumberOfCigarette2,jCheckBoxWater2,jCheckBoxCafe2,jCheckBoxCigarette2,jButtonSumMoney2);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonSumMoney2ActionPerformed
    private void jButtonEnable3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEnable3ActionPerformed
        BeginAUser(jPanel3,jPanelTime3); 
        Calendar now = Calendar.getInstance();
        beginHour3 = now.get(Calendar.HOUR_OF_DAY);
        beginMinute3 = now.get(Calendar.MINUTE);
        SetBeginTime(jLabelBeginTime3,beginHour3,beginMinute3);
        jButtonEnable3.setText(beginHour3+":"+beginMinute3);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonEnable3ActionPerformed
    private void jButtonReset3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonReset3ActionPerformed
		        ResetAUser(jPanel3,jPanelTime3); 
        ResetToDefaultValue(jLabelBeginTime3,jLabelEndTime3,jLabelTimeResult3,jLabelMoneyOfTime3,jCheckBoxCafe3,jCheckBoxCigarette3,jCheckBoxWater3,jComboBoxMoneyOfCafe3,jComboBoxMoneyOfCigarette3,jComboBoxMoneyOfWater3,jComboBoxNumberOfCafe3,jComboBoxNumberOfCigarette3,jComboBoxNumberOfWater3,jComboBoxSubtractTime3);
        jButtonEnable3.setText("Begin");
        jButtonSumMoney3.setText("End");
		        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonReset3ActionPerformed
    private void jCheckBoxWater3StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxWater3StateChanged
        checkboxStateChangeWater(jCheckBoxWater3,jPanelTime3);
    }//GEN-LAST:event_jCheckBoxWater3StateChanged
    private void jCheckBoxCafe3StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCafe3StateChanged
        checkboxStateChangeCafe(jCheckBoxCafe3,jPanelTime3);
    }//GEN-LAST:event_jCheckBoxCafe3StateChanged
    private void jCheckBoxCigarette3StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCigarette3StateChanged
        checkboxStateChangeCigarette(jCheckBoxCigarette3,jPanelTime3);
    }//GEN-LAST:event_jCheckBoxCigarette3StateChanged
    private void jButtonSumMoney3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSumMoney3ActionPerformed
GetResult(jLabelEndTime3,jLabelTimeResult3,jLabelMoneyOfTime3,beginHour3,beginMinute3,jComboBoxSubtractTime3,jComboBoxMoneyOfWater3,jComboBoxNumberOfWater3,jComboBoxMoneyOfCafe3,jComboBoxNumberOfCafe3,jComboBoxMoneyOfCigarette3,jComboBoxNumberOfCigarette3,jCheckBoxWater3,jCheckBoxCafe3,jCheckBoxCigarette3,jButtonSumMoney3);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonSumMoney3ActionPerformed
    private void jButtonEnable4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEnable4ActionPerformed
        BeginAUser(jPanel4,jPanelTime4); 
        Calendar now = Calendar.getInstance();
        beginHour4 = now.get(Calendar.HOUR_OF_DAY);
        beginMinute4 = now.get(Calendar.MINUTE);
        SetBeginTime(jLabelBeginTime4,beginHour4,beginMinute4);
        jButtonEnable4.setText(beginHour4+":"+beginMinute4);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonEnable4ActionPerformed
    private void jButtonReset4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonReset4ActionPerformed
		        ResetAUser(jPanel4,jPanelTime4); 
        ResetToDefaultValue(jLabelBeginTime4,jLabelEndTime4,jLabelTimeResult4,jLabelMoneyOfTime4,jCheckBoxCafe4,jCheckBoxCigarette4,jCheckBoxWater4,jComboBoxMoneyOfCafe4,jComboBoxMoneyOfCigarette4,jComboBoxMoneyOfWater4,jComboBoxNumberOfCafe4,jComboBoxNumberOfCigarette4,jComboBoxNumberOfWater4,jComboBoxSubtractTime4);
        jButtonEnable4.setText("Begin");
        jButtonSumMoney4.setText("End");        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonReset4ActionPerformed
    private void jCheckBoxWater4StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxWater4StateChanged
    checkboxStateChangeWater(jCheckBoxWater4,jPanelTime4);
    }//GEN-LAST:event_jCheckBoxWater4StateChanged
    private void jCheckBoxCafe4StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCafe4StateChanged
    checkboxStateChangeCafe(jCheckBoxCafe4,jPanelTime4);
    }//GEN-LAST:event_jCheckBoxCafe4StateChanged
    private void jCheckBoxCigarette4StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCigarette4StateChanged
    checkboxStateChangeCigarette(jCheckBoxCigarette4,jPanelTime4);
    }//GEN-LAST:event_jCheckBoxCigarette4StateChanged
    private void jButtonSumMoney4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSumMoney4ActionPerformed
GetResult(jLabelEndTime4,jLabelTimeResult4,jLabelMoneyOfTime4,beginHour4,beginMinute4,jComboBoxSubtractTime4,jComboBoxMoneyOfWater4,jComboBoxNumberOfWater4,jComboBoxMoneyOfCafe4,jComboBoxNumberOfCafe4,jComboBoxMoneyOfCigarette4,jComboBoxNumberOfCigarette4,jCheckBoxWater4,jCheckBoxCafe4,jCheckBoxCigarette4,jButtonSumMoney4);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonSumMoney4ActionPerformed
    private void jButtonEnable5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEnable5ActionPerformed
        BeginAUser(jPanel5,jPanelTime5); 
        Calendar now = Calendar.getInstance();
        beginHour5 = now.get(Calendar.HOUR_OF_DAY);
        beginMinute5 = now.get(Calendar.MINUTE);
        SetBeginTime(jLabelBeginTime5,beginHour5,beginMinute5);
        jButtonEnable5.setText(beginHour5+":"+beginMinute5);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonEnable5ActionPerformed
    private void jButtonReset5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonReset5ActionPerformed
		        ResetAUser(jPanel5,jPanelTime5); 
        ResetToDefaultValue(jLabelBeginTime5,jLabelEndTime5,jLabelTimeResult5,jLabelMoneyOfTime5,jCheckBoxCafe5,jCheckBoxCigarette5,jCheckBoxWater5,jComboBoxMoneyOfCafe5,jComboBoxMoneyOfCigarette5,jComboBoxMoneyOfWater5,jComboBoxNumberOfCafe5,jComboBoxNumberOfCigarette5,jComboBoxNumberOfWater5,jComboBoxSubtractTime5);
        jButtonEnable5.setText("Begin");
        jButtonSumMoney5.setText("End");        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonReset5ActionPerformed
    private void jCheckBoxWater5StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxWater5StateChanged
    checkboxStateChangeWater(jCheckBoxWater5,jPanelTime5);
    }//GEN-LAST:event_jCheckBoxWater5StateChanged
    private void jCheckBoxCafe5StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCafe5StateChanged
    checkboxStateChangeCafe(jCheckBoxCafe5,jPanelTime5);
    }//GEN-LAST:event_jCheckBoxCafe5StateChanged
    private void jCheckBoxCigarette5StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jCheckBoxCigarette5StateChanged
    checkboxStateChangeCigarette(jCheckBoxCigarette5,jPanelTime5);
    }//GEN-LAST:event_jCheckBoxCigarette5StateChanged
    private void jButtonSumMoney5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSumMoney5ActionPerformed
GetResult(jLabelEndTime5,jLabelTimeResult5,jLabelMoneyOfTime5,beginHour5,beginMinute5,jComboBoxSubtractTime5,jComboBoxMoneyOfWater5,jComboBoxNumberOfWater5,jComboBoxMoneyOfCafe5,jComboBoxNumberOfCafe5,jComboBoxMoneyOfCigarette5,jComboBoxNumberOfCigarette5,jCheckBoxWater5,jCheckBoxCafe5,jCheckBoxCigarette5,jButtonSumMoney5);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonSumMoney5ActionPerformed
    private void minimize() {
        if (tray % 2 == 1) {
//frame.setState(frame.ICONIFIED);
            frame.setVisible(false);
            tray = tray + 1;
        } else {
//frame.setState(frame.NORMAL);
            frame.setVisible(true);
            tray = tray + 1;
        }
    }
    private void start() {
        if (SystemTray.isSupported()) {
            //try {
                SystemTray sysTray = SystemTray.getSystemTray();
                MouseListener mouseListener = new MouseListener() {

                    public void mouseClicked(MouseEvent e) {
                        minimize();
                    }

                    public void mouseEntered(MouseEvent e) {
                        //System.out.println("Tray Icon - Mouse entered!");                 
                    }

                    public void mouseExited(MouseEvent e) {
                        //System.out.println("Tray Icon - Mouse exited!");                 
                    }

                    public void mousePressed(MouseEvent e) {
                        //System.out.println("Tray Icon - Mouse pressed!");                 
                    }

                    public void mouseReleased(MouseEvent e) {
                        //System.out.println("Tray Icon - Mouse released!");                 
                    }
                };
                //BufferedImage image = ImageIO.read(frame.getClass().getResource("/ps4/resources/icon.png"));
                //Image trayImage = Toolkit.getDefaultToolkit().getImage(IMAGE);
                createMenu();
                trayIcon = new TrayIcon(image, "PS4", menu);
                //trayIcon.addActionListener(actionListener);
                trayIcon.addMouseListener(mouseListener);
                trayIcon.setImageAutoSize(true);
                try {
                    sysTray.add(trayIcon);
                    //trayIcon.displayMessage("caption", "howdy", TrayIcon.MessageType.INFO);
                } catch (AWTException e) {
                    System.err.println("Error starting tray: " + e);
                }
        } else {
            System.err.println("SystemTray not supported");
        }
        
//        mainPanel.setDropTarget(new DropTarget() {
//        public synchronized void drop(DropTargetDropEvent evt) {
//            try {
//                evt.acceptDrop(DnDConstants.ACTION_COPY);
//                String droppedFiles = (String) evt.getTransferable().getTransferData(DataFlavor.stringFlavor);
//                //droppedFiles = droppedFiles.replaceAll("%20", "\\\\ ");
////                for(int i=0;i<droppedFiles.length();i++)
////                {
////                    if(droppedFiles.charAt(i)==' ') 
////                    {
////                        showPopup("Remve space in file name", 200, 50);
////                    }
////                }
//                //droppedFiles = URLDecoder.decode(droppedFiles);
//                //droppedFiles = droppedFiles.replaceAll("%20"," ");
//                droppedFiles = droppedFiles.substring(0, droppedFiles.length()-2);
//                String[] command1= new String[1];
//                command1[0] = "vlc "+droppedFiles;
//                Runtime rt2 = Runtime.getRuntime();      
//                Process pr2 = rt2.exec(command1[0]);
//                //pr2.exitValue();
//            } catch (Exception ex) {
//                ex.printStackTrace();
//            }
//        }
//    });
//        Thread th1; //Khởi tạo Thread
//        th1 = new Thread(){
//            public void run(){
//                try {
//                    System.out.println("Thread vừa được thực thi");
//                    Thread.sleep(2000);
//                } catch (InterruptedException ex) {
//                    Logger.getLogger(PS4View.class.getName()).log(Level.SEVERE, null, ex);
//                }
//            }
//                
//        };
//        Thread.sleep(2000);
//        th1.start(); //Thực thi Thread th1

    
        
    }
    private void createMenu() {
        menu = new PopupMenu();
        MenuItem note1 = new MenuItem("Note 1");

        MenuItem exit = new MenuItem("Exit");
        note1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
                dialog1();
            }
        });    
       
        exit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exit();
            }
        });
        menu.add(note1);
        menu.addSeparator();
        menu.add(exit);
    }
    private void WriteFileTXT(String l1, String l2, String l3, String l4, String l5, String l6, String l7, String l8, String l9, String l10, String l11, String l12, String l13, String l14) {
        try {
            FileOutputStream fstream = new FileOutputStream(path + "ps4.txt", false);
            OutputStreamWriter out = new OutputStreamWriter(fstream, "utf-8");
            //FileWriter fstream = new FileWriter(path + "report.txt");
            //BufferedWriter out = new BufferedWriter(fstream);
            out.write(l1);
            out.write(System.getProperty("line.separator"));
            out.write(l2);
            out.write(System.getProperty("line.separator"));
            out.write(l3);
            out.write(System.getProperty("line.separator"));
            out.write(l4);
            out.write(System.getProperty("line.separator"));
            out.write(l5);
            out.write(System.getProperty("line.separator"));
            out.write(l6);
            out.write(System.getProperty("line.separator"));
            out.write(l7);
            out.write(System.getProperty("line.separator"));
            out.write(l8);
            out.write(System.getProperty("line.separator"));
            out.write(l9);
            out.write(System.getProperty("line.separator"));
            out.write(l10);
            out.write(System.getProperty("line.separator"));
            out.write(l11);
            out.write(System.getProperty("line.separator"));
            out.write(l12);
            out.write(System.getProperty("line.separator"));
            out.write(l13);
            out.write(System.getProperty("line.separator"));
            out.write(l14);
            out.write(System.getProperty("line.separator"));
            out.close();
        } catch (IOException e) {
            System.err.println(e.getMessage());
        }
    }
    private void exit() {
       // getTextFromTextbox();
        
        System.exit(0);
    }
    private void ChangeFocus() {
        if (focus % 2 == 0) {
            frame.setFocusableWindowState(true);
            focus++;
            org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ps4.PS4.class).getContext().getResourceMap(PS4View.class);
            jButtonFocus.setIcon(resourceMap.getIcon("jButtonFocus.icon2")); // NOI18N
            frame.setAlwaysOnTop(false);
        } else {
            frame.setFocusableWindowState(false);
            focus++;
            org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ps4.PS4.class).getContext().getResourceMap(PS4View.class);
            jButtonFocus.setIcon(resourceMap.getIcon("jButtonFocus.icon")); // NOI18N
            frame.setAlwaysOnTop(true);
        }
    }
    private void ReadFileReportTXT() {
        String line1 = "";
        String line2 = "";
        String line3 = "";
        String line4 = "";
        String line5 = "";
        String line6 = "";
        String line7 = "";
        String line8 = "";
        String line9 = "";
        String line10 = "";
        String line11 = "";
        String line12 = "";
        String line13 = "";
        String line14 = "";
        String line15 = "";
        String line16 = "";
        String line17 = "";
        String line18 = "";
        int OK = 1;
        try {
            FileInputStream fstreamCheck = new FileInputStream(path + "report.txt");
            DataInputStream inCheck = new DataInputStream(fstreamCheck);
        } catch (FileNotFoundException ex) {
            if (!ex.toString().equals("")) {
                OK = 0;
            }
        }
        if (OK == 1) {
            try {
                FileInputStream fstream = new FileInputStream(path + "report.txt");
                DataInputStream in = new DataInputStream(fstream);
                BufferedReader br = new BufferedReader(new InputStreamReader(in));
                String strLine;
                while ((strLine = br.readLine()) != null) {
                    if (!line1.equals("")) {
                        if (!line2.equals("")) {
                            if (!line3.equals("")) {
                                if (!line4.equals("")) {
                                    if (!line5.equals("")) {
                                        if (!line6.equals("")) {
                                            if (!line7.equals("")) {
                                                if (!line8.equals("")) {
                                                    if (!line9.equals("")) {
                                                        if (!line10.equals("")) {
                                                            if (!line11.equals("")) {
                                                                if (!line12.equals("")) {
                                                                    if (!line13.equals("")) {
                                                                        if (!line14.equals("")) {
                                                                            if (!line15.equals("")) {
                                                                                if (!line16.equals("")) {
                                                                                    if (!line17.equals("")) {
                                                                                        if (line18.equals("")) {
                                                                                            line18 = strLine;
                                                                                        }
                                                                                    } else {
                                                                                        line17 = strLine;
                                                                                    }
                                                                                } else {
                                                                                    line16 = strLine;
                                                                                }
                                                                            } else {
                                                                                line15 = strLine;
                                                                            }
                                                                        } else {
                                                                            line14 = strLine;
                                                                        }
                                                                    } else {
                                                                        line13 = strLine;
                                                                    }
                                                                } else {
                                                                    line12 = strLine;
                                                                }
                                                            } else {
                                                                line11 = strLine;
                                                            }
                                                        } else {
                                                            line10 = strLine;
                                                        }
                                                    } else {
                                                        line9 = strLine;
                                                    }
                                                } else {
                                                    line8 = strLine;
                                                }
                                            } else {
                                                line7 = strLine;
                                            }
                                        } else {
                                            line6 = strLine;
                                        }
                                    } else {
                                        line5 = strLine;
                                    }
                                } else {
                                    line4 = strLine;
                                }
                            } else {
                                line3 = strLine;
                            }
                        } else {
                            line2 = strLine;
                        }
                    } else {
                        line1 = strLine;
                    }
                }
                in.close();
            } catch (IOException e) {
            }
         
        }
    }
    private void showPopup(String message, int w, int h,int time) {
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ps4.PS4.class).getContext().getResourceMap(PS4View.class);
        Component component = null;
        JLabel JLabelPopup = new JLabel();
        JLabelPopup.setText("<html>" + message + "</html>");
        JLabelPopup.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        JLabelPopup.setBackground(Color.yellow);
        JLabelPopup.setFont(resourceMap.getFont("jLabelIAPTest.font"));
        JLabelPopup.setForeground(Color.RED);
        JLabelPopup.setPreferredSize(new java.awt.Dimension(w, h));
        PopupFactory factory = PopupFactory.getSharedInstance();
        int x = 850;
        int y = 20;
        final Popup popup = factory.getPopup(component, JLabelPopup, x, y);
        popup.show();
        ActionListener hider = new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                popup.hide();
            }
        };
        Timer timer = new Timer(time, hider);
        timer.start();
    }
    private void setTheme() {
        
        //String getLook= UIManager.getLookAndFeelDefaults();
        if (jRadioButtonDefaultLF.isSelected()) {
            try {
                UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
            } catch (ClassNotFoundException ex) {
            } catch (InstantiationException ex) {
            } catch (IllegalAccessException ex) {
            } catch (UnsupportedLookAndFeelException ex) {
            }
            SwingUtilities.updateComponentTreeUI(frame);
            frame.pack();
        }
        if (jRadioButtonNimbus.isSelected()) {
            try {
                UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
            } catch (ClassNotFoundException ex) {
            } catch (InstantiationException ex) {
            } catch (IllegalAccessException ex) {
            } catch (UnsupportedLookAndFeelException ex) {
            }
            SwingUtilities.updateComponentTreeUI(frame);
            frame.pack();
        }
        if (jRadioButtonAluminium.isSelected()) {
            try {
                UIManager.setLookAndFeel("com.jtattoo.plaf.aluminium.AluminiumLookAndFeel");
            } catch (ClassNotFoundException ex) {
            } catch (InstantiationException ex) {
            } catch (IllegalAccessException ex) {
            } catch (UnsupportedLookAndFeelException ex) {
            }
            SwingUtilities.updateComponentTreeUI(frame);
            frame.pack();
        }
        if (jRadioButtonGraphite.isSelected()) {
            try {
                UIManager.setLookAndFeel("com.jtattoo.plaf.graphite.GraphiteLookAndFeel");
            } catch (ClassNotFoundException ex) {
            } catch (InstantiationException ex) {
            } catch (IllegalAccessException ex) {
            } catch (UnsupportedLookAndFeelException ex) {
            }
            SwingUtilities.updateComponentTreeUI(frame);
            frame.pack();
        }
        if (jRadioButtonMint.isSelected()) {
            try {
                UIManager.setLookAndFeel("com.jtattoo.plaf.mint.MintLookAndFeel");//dep
            } catch (ClassNotFoundException ex) {
            } catch (InstantiationException ex) {
            } catch (IllegalAccessException ex) {
            } catch (UnsupportedLookAndFeelException ex) {
            }
            SwingUtilities.updateComponentTreeUI(frame);
            frame.pack();
        }
        if (jRadioButtonNoire.isSelected()) {
            try {
                UIManager.setLookAndFeel("com.jtattoo.plaf.noire.NoireLookAndFeel");//hightlight
            } catch (ClassNotFoundException ex) {
            } catch (InstantiationException ex) {
            } catch (IllegalAccessException ex) {
            } catch (UnsupportedLookAndFeelException ex) {
            }
            SwingUtilities.updateComponentTreeUI(frame);
            frame.pack();
        }
        if (jRadioButtonAcryl.isSelected()) {
            try {
                UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
            } catch (ClassNotFoundException ex) {
            } catch (InstantiationException ex) {
            } catch (IllegalAccessException ex) {
            } catch (UnsupportedLookAndFeelException ex) {
            }
            SwingUtilities.updateComponentTreeUI(frame);
            frame.pack();
        }

    }
    private void dialog1() {
        String readNote1 = ReadNote1();
        final JDialog dialog = new JDialog(frame);
        dialog.setUndecorated(true);
        dialog.setUndecorated(true);
        dialog.setAlwaysOnTop(true);
        dialog.setLocation(910, 50);
        dialog.setSize(new java.awt.Dimension(200, 200));
        JPanel panel1 = new JPanel();
        panel1.setBackground(Color.yellow);
        panel1.setSize(new java.awt.Dimension(200, 200));
        final JTextArea area = new JTextArea();
        area.setSize(new java.awt.Dimension(200, 200));
        area.setBackground(Color.white);
        area.setText(readNote1);
        panel1.add(area);
        dialog.add(panel1);
        dialog.setVisible(true);
        dialog.addMouseListener(new java.awt.event.MouseAdapter() {
            @Override
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                if (evt.getButton() == MouseEvent.BUTTON3) {
                    String note1 = area.getText();
                    WriteNote1(note1);
                    dialog.setVisible(false);
                }
                if (evt.getButton() == MouseEvent.BUTTON1) {
                    if (dialog.isUndecorated() == false) {
                        dialog.dispose();
                        dialog.setUndecorated(true);
                        dialog.setVisible(true);
                    }
                }
                if (evt.getButton() == MouseEvent.BUTTON2) {
                    if (dialog.isUndecorated() == true) {
                        dialog.dispose();
                        dialog.setUndecorated(false);
                        dialog.setVisible(true);
                    }
                }
            }
        });
    }
    private void WriteNote1(String textarea) {


        try {
            FileWriter fstream = new FileWriter(path + "note1");
            BufferedWriter out = new BufferedWriter(fstream);
            out.write(textarea);
            out.newLine();
            out.close();
        } catch (IOException e) {
            System.err.println(e.getMessage());
        }
    }
    private String ReadNote1() {
        String output = "";
        int OK = 1;
        //ArrayList<String> allLines = new ArrayList<String>();
        try {
            FileInputStream fstreamCheck = new FileInputStream(path + "note1");
            //DataInputStream inCheck = new DataInputStream(fstreamCheck);
        } catch (FileNotFoundException ex20) {
            String out = ex20.getMessage();

            status = status + "<br>ex20:" + ex20.getMessage();
            showPopup("Error: " + out, 400, 90,3000);
            if (!ex20.toString().equals("")) {
                OK = 0;
            }
        }
        if (OK == 1) {
            try {
                FileInputStream fstream = new FileInputStream(path + "note1");
                DataInputStream in = new DataInputStream(fstream);
                BufferedReader br = new BufferedReader(new InputStreamReader(in));
                String strLine;

                while ((strLine = br.readLine()) != null) {
                    output = output + strLine + "\n";

                }
                in.close();
            } catch (IOException e6) {
                status = status + "<br>e6:" + e6.getMessage();
            }
        }
        return output;
    }
    private void BeginAUser(JPanel panel, JPanel panelTime){
        
        panel.getComponent(0).setEnabled(false);
        panel.getComponent(1).setEnabled(true);
        
        
        panelTime.getComponent(0).setEnabled(true);
        panelTime.getComponent(1).setEnabled(true);
        panelTime.getComponent(2).setEnabled(true);
        panelTime.getComponent(3).setEnabled(true);
        panelTime.getComponent(4).setEnabled(true);
        panelTime.getComponent(5).setEnabled(true);
        panelTime.getComponent(6).setEnabled(true);
        panelTime.getComponent(7).setEnabled(true);
        panelTime.getComponent(8).setEnabled(true);
        panelTime.getComponent(9).setEnabled(true);
        panelTime.getComponent(10).setEnabled(true);
        panelTime.getComponent(11).setEnabled(true);
        //jPanelTime1.getComponent(12).setEnabled(true);
        //jPanelTime1.getComponent(13).setEnabled(true);
        panelTime.getComponent(14).setEnabled(true);
        panelTime.getComponent(15).setEnabled(true);
        //jPanelTime1.getComponent(16).setEnabled(true);
        //jPanelTime1.getComponent(17).setEnabled(true);
        panelTime.getComponent(18).setEnabled(true);
        panelTime.getComponent(19).setEnabled(true);
        //jPanelTime1.getComponent(20).setEnabled(true);
        //jPanelTime1.getComponent(21).setEnabled(true);
        panelTime.getComponent(22).setEnabled(true);
    }
    private void ResetAUser(JPanel panel,JPanel panelTime){
   
        panel.getComponent(0).setEnabled(true);
        panel.getComponent(1).setEnabled(false);
        panelTime.getComponent(0).setEnabled(false);
        panelTime.getComponent(1).setEnabled(false);
        panelTime.getComponent(2).setEnabled(false);
        panelTime.getComponent(3).setEnabled(false);
        panelTime.getComponent(4).setEnabled(false);
        panelTime.getComponent(5).setEnabled(false);
        panelTime.getComponent(6).setEnabled(false);
        panelTime.getComponent(7).setEnabled(false);
        panelTime.getComponent(8).setEnabled(false);
        panelTime.getComponent(9).setEnabled(false);
        panelTime.getComponent(10).setEnabled(false);
        panelTime.getComponent(11).setEnabled(false);
        panelTime.getComponent(12).setEnabled(false);
        panelTime.getComponent(13).setEnabled(false);
        panelTime.getComponent(14).setEnabled(false);
        panelTime.getComponent(15).setEnabled(false);
        panelTime.getComponent(16).setEnabled(false);
        panelTime.getComponent(17).setEnabled(false);
        panelTime.getComponent(18).setEnabled(false);
        panelTime.getComponent(19).setEnabled(false);
        panelTime.getComponent(20).setEnabled(false);
        panelTime.getComponent(21).setEnabled(false);
        panelTime.getComponent(22).setEnabled(false);
        
    } 
    private void ResetToDefaultValue(JLabel label1,JLabel label2,JLabel label3,JLabel label4,JCheckBox CheckBox1,JCheckBox CheckBox2,JCheckBox CheckBox3,JComboBox ComboBox1,JComboBox ComboBox2, JComboBox ComboBox3,JComboBox ComboBox4,JComboBox ComboBox5,JComboBox ComboBox6,JComboBox ComboBox7){
    label1.setText("00:00");
    label2.setText("00:00");
    label3.setText("00:00");
    label4.setText("0 VND");
    CheckBox1.setSelected(false);
    CheckBox2.setSelected(false);
    CheckBox3.setSelected(false);
    ComboBox1.setSelectedIndex(0);
    ComboBox2.setSelectedIndex(0);
    ComboBox3.setSelectedIndex(0);
    ComboBox4.setSelectedIndex(0);
    ComboBox5.setSelectedIndex(0);
    ComboBox6.setSelectedIndex(0);
    ComboBox7.setSelectedIndex(0);
    }
    private void SetBeginTime(JLabel labelBeginTime,int hour,int minute){
            labelBeginTime.setText(hour+":"+minute);
    }
    private void GetResult(JLabel labelEndTime,JLabel LabelTimeResult,JLabel LabelMoneyofTime,int beginHour,int beginMinute,JComboBox cbbSubtractTime,JComboBox cbbMoneyWater,JComboBox cbbNumberWater, JComboBox cbbMoneyCafe, JComboBox cbbNumberCafe,JComboBox cbbMoneyCigarette,JComboBox cbbNumberCigarette,JCheckBox cbwater,JCheckBox cbcafe,JCheckBox cbCigarette,JButton btSumMoney){
        //calc minutes
        int totalTime=0;
        Calendar now = Calendar.getInstance();
        int Endhour = now.get(Calendar.HOUR_OF_DAY);
        int Endminute = now.get(Calendar.MINUTE);
        int subtractTime = Integer.parseInt(cbbSubtractTime.getSelectedItem().toString());
        labelEndTime.setText(Endhour+":"+Endminute);
        totalTime=(Endhour-beginHour)*60+Endminute-beginMinute-subtractTime;
        //System.out.print(subtractTime+"subtract");
        LabelTimeResult.setText(totalTime+"");
        //calc moneys
        int MoneyofTime = 0;
        int TotalMoney = 0;
        int waterMoney=0;
        if(cbwater.isSelected()==true)    waterMoney=Integer.parseInt(cbbMoneyWater.getSelectedItem().toString())*Integer.parseInt(cbbNumberWater.getSelectedItem().toString());
        int cafeMoney=0;
        if(cbcafe.isSelected()==true)     cafeMoney=Integer.parseInt(cbbMoneyCafe.getSelectedItem().toString())*Integer.parseInt(cbbNumberCafe.getSelectedItem().toString());
        int CigaretteMoney=0;
        if(cbCigarette.isSelected()==true)CigaretteMoney=Integer.parseInt(cbbMoneyCigarette.getSelectedItem().toString())*Integer.parseInt(cbbNumberCigarette.getSelectedItem().toString());
        String money = jTextFieldPricePerMinute.getText();
        if(!"".equals(money)&&Integer.parseInt(money)>0)
        {
        MoneyofTime = totalTime*Integer.parseInt(money)/60;
        LabelMoneyofTime.setText(MoneyofTime+"");
        TotalMoney=MoneyofTime+waterMoney+cafeMoney+CigaretteMoney;
        btSumMoney.setText(TotalMoney+"");
        }
        //show pop up
        String popup="Thời gian bắt đầu: "+beginHour+":"+beginMinute+"<br>";
        popup=popup+ "Thời gian kết thúc:"+Endhour+":"+Endminute+"<br>";
        popup=popup+ "Thời gian chơi:    "+totalTime+" phút<br>";
        popup=popup+ "Tiền chơi game:    "+MoneyofTime+" VNĐ<br>";
        popup=popup+ "Tiền nước, thuốc:  "+(waterMoney+cafeMoney+CigaretteMoney)+" VNĐ<br><br>";
        popup=popup+ "Tổng tiền:         "+TotalMoney+" VNĐ.";
        showPopup(popup, 250, 180,10000);        
    }
private void checkboxStateChangeWater(JCheckBox inputCheckBox,JPanel jPanelTime){
                if(inputCheckBox.isSelected()==true){
            jPanelTime.getComponent(12).setEnabled(true);
            jPanelTime.getComponent(13).setEnabled(true);
        }
        else 
        {
                jPanelTime.getComponent(12).setEnabled(false);
                jPanelTime.getComponent(13).setEnabled(false);
        }
    }      
private void checkboxStateChangeCafe(JCheckBox inputCheckBox,JPanel jPanelTime){
         if(inputCheckBox.isSelected()==true){
            jPanelTime.getComponent(16).setEnabled(true);
            jPanelTime.getComponent(17).setEnabled(true);
        }
        else {
         jPanelTime.getComponent(16).setEnabled(false);
            jPanelTime.getComponent(17).setEnabled(false);
         }
    
    }
private void checkboxStateChangeCigarette(JCheckBox inputCheckBox,JPanel jPanelTime){
         
         if(inputCheckBox.isSelected()==true){
            jPanelTime.getComponent(20).setEnabled(true);
            jPanelTime.getComponent(21).setEnabled(true);
        }
        else {
         jPanelTime.getComponent(20).setEnabled(false);
            jPanelTime.getComponent(21).setEnabled(false);
         }
    
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JButton jButtonEnable1;
    private javax.swing.JButton jButtonEnable2;
    private javax.swing.JButton jButtonEnable3;
    private javax.swing.JButton jButtonEnable4;
    private javax.swing.JButton jButtonEnable5;
    private javax.swing.JButton jButtonFocus;
    private javax.swing.JButton jButtonMinimize;
    private javax.swing.JButton jButtonReset1;
    private javax.swing.JButton jButtonReset2;
    private javax.swing.JButton jButtonReset3;
    private javax.swing.JButton jButtonReset4;
    private javax.swing.JButton jButtonReset5;
    private javax.swing.JButton jButtonSumMoney1;
    private javax.swing.JButton jButtonSumMoney2;
    private javax.swing.JButton jButtonSumMoney3;
    private javax.swing.JButton jButtonSumMoney4;
    private javax.swing.JButton jButtonSumMoney5;
    private javax.swing.JCheckBox jCheckBoxCafe1;
    private javax.swing.JCheckBox jCheckBoxCafe2;
    private javax.swing.JCheckBox jCheckBoxCafe3;
    private javax.swing.JCheckBox jCheckBoxCafe4;
    private javax.swing.JCheckBox jCheckBoxCafe5;
    private javax.swing.JCheckBox jCheckBoxCigarette1;
    private javax.swing.JCheckBox jCheckBoxCigarette2;
    private javax.swing.JCheckBox jCheckBoxCigarette3;
    private javax.swing.JCheckBox jCheckBoxCigarette4;
    private javax.swing.JCheckBox jCheckBoxCigarette5;
    private javax.swing.JCheckBox jCheckBoxEnablePrice;
    private javax.swing.JCheckBox jCheckBoxWater1;
    private javax.swing.JCheckBox jCheckBoxWater2;
    private javax.swing.JCheckBox jCheckBoxWater3;
    private javax.swing.JCheckBox jCheckBoxWater4;
    private javax.swing.JCheckBox jCheckBoxWater5;
    private javax.swing.JComboBox jComboBoxMoneyOfCafe1;
    private javax.swing.JComboBox jComboBoxMoneyOfCafe2;
    private javax.swing.JComboBox jComboBoxMoneyOfCafe3;
    private javax.swing.JComboBox jComboBoxMoneyOfCafe4;
    private javax.swing.JComboBox jComboBoxMoneyOfCafe5;
    private javax.swing.JComboBox jComboBoxMoneyOfCigarette1;
    private javax.swing.JComboBox jComboBoxMoneyOfCigarette2;
    private javax.swing.JComboBox jComboBoxMoneyOfCigarette3;
    private javax.swing.JComboBox jComboBoxMoneyOfCigarette4;
    private javax.swing.JComboBox jComboBoxMoneyOfCigarette5;
    private javax.swing.JComboBox jComboBoxMoneyOfWater1;
    private javax.swing.JComboBox jComboBoxMoneyOfWater2;
    private javax.swing.JComboBox jComboBoxMoneyOfWater3;
    private javax.swing.JComboBox jComboBoxMoneyOfWater4;
    private javax.swing.JComboBox jComboBoxMoneyOfWater5;
    private javax.swing.JComboBox jComboBoxNumberOfCafe1;
    private javax.swing.JComboBox jComboBoxNumberOfCafe2;
    private javax.swing.JComboBox jComboBoxNumberOfCafe3;
    private javax.swing.JComboBox jComboBoxNumberOfCafe4;
    private javax.swing.JComboBox jComboBoxNumberOfCafe5;
    private javax.swing.JComboBox jComboBoxNumberOfCigarette1;
    private javax.swing.JComboBox jComboBoxNumberOfCigarette2;
    private javax.swing.JComboBox jComboBoxNumberOfCigarette3;
    private javax.swing.JComboBox jComboBoxNumberOfCigarette4;
    private javax.swing.JComboBox jComboBoxNumberOfCigarette5;
    private javax.swing.JComboBox jComboBoxNumberOfWater1;
    private javax.swing.JComboBox jComboBoxNumberOfWater2;
    private javax.swing.JComboBox jComboBoxNumberOfWater3;
    private javax.swing.JComboBox jComboBoxNumberOfWater4;
    private javax.swing.JComboBox jComboBoxNumberOfWater5;
    private javax.swing.JComboBox jComboBoxSubtractTime1;
    private javax.swing.JComboBox jComboBoxSubtractTime2;
    private javax.swing.JComboBox jComboBoxSubtractTime3;
    private javax.swing.JComboBox jComboBoxSubtractTime4;
    private javax.swing.JComboBox jComboBoxSubtractTime5;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabelBeginTime1;
    private javax.swing.JLabel jLabelBeginTime2;
    private javax.swing.JLabel jLabelBeginTime3;
    private javax.swing.JLabel jLabelBeginTime4;
    private javax.swing.JLabel jLabelBeginTime5;
    private javax.swing.JLabel jLabelEndTime1;
    private javax.swing.JLabel jLabelEndTime2;
    private javax.swing.JLabel jLabelEndTime3;
    private javax.swing.JLabel jLabelEndTime4;
    private javax.swing.JLabel jLabelEndTime5;
    private javax.swing.JLabel jLabelExit3;
    private javax.swing.JLabel jLabelForBeginTime1;
    private javax.swing.JLabel jLabelForBeginTime2;
    private javax.swing.JLabel jLabelForBeginTime3;
    private javax.swing.JLabel jLabelForBeginTime4;
    private javax.swing.JLabel jLabelForBeginTime5;
    private javax.swing.JLabel jLabelForEndTime1;
    private javax.swing.JLabel jLabelForEndTime2;
    private javax.swing.JLabel jLabelForEndTime3;
    private javax.swing.JLabel jLabelForEndTime4;
    private javax.swing.JLabel jLabelForEndTime5;
    private javax.swing.JLabel jLabelMoneyOfTime1;
    private javax.swing.JLabel jLabelMoneyOfTime2;
    private javax.swing.JLabel jLabelMoneyOfTime3;
    private javax.swing.JLabel jLabelMoneyOfTime4;
    private javax.swing.JLabel jLabelMoneyOfTime5;
    private javax.swing.JLabel jLabelPlus1_1;
    private javax.swing.JLabel jLabelPlus1_10;
    private javax.swing.JLabel jLabelPlus1_11;
    private javax.swing.JLabel jLabelPlus1_12;
    private javax.swing.JLabel jLabelPlus1_13;
    private javax.swing.JLabel jLabelPlus1_14;
    private javax.swing.JLabel jLabelPlus1_15;
    private javax.swing.JLabel jLabelPlus1_2;
    private javax.swing.JLabel jLabelPlus1_3;
    private javax.swing.JLabel jLabelPlus1_4;
    private javax.swing.JLabel jLabelPlus1_5;
    private javax.swing.JLabel jLabelPlus1_6;
    private javax.swing.JLabel jLabelPlus1_7;
    private javax.swing.JLabel jLabelPlus1_8;
    private javax.swing.JLabel jLabelPlus1_9;
    private javax.swing.JLabel jLabelSubtract1;
    private javax.swing.JLabel jLabelSubtract2;
    private javax.swing.JLabel jLabelSubtract3;
    private javax.swing.JLabel jLabelSubtract4;
    private javax.swing.JLabel jLabelSubtract5;
    private javax.swing.JLabel jLabelTimeResult1;
    private javax.swing.JLabel jLabelTimeResult2;
    private javax.swing.JLabel jLabelTimeResult3;
    private javax.swing.JLabel jLabelTimeResult4;
    private javax.swing.JLabel jLabelTimeResult5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanelAllUser;
    private javax.swing.JPanel jPanelMoveableIAPExpand;
    private javax.swing.JPanel jPanelTheme;
    private javax.swing.JPanel jPanelTime1;
    private javax.swing.JPanel jPanelTime2;
    private javax.swing.JPanel jPanelTime3;
    private javax.swing.JPanel jPanelTime4;
    private javax.swing.JPanel jPanelTime5;
    private javax.swing.JRadioButton jRadioButtonAcryl;
    private javax.swing.JRadioButton jRadioButtonAluminium;
    private javax.swing.JRadioButton jRadioButtonDefaultLF;
    private javax.swing.JRadioButton jRadioButtonGraphite;
    private javax.swing.JRadioButton jRadioButtonMint;
    private javax.swing.JRadioButton jRadioButtonNimbus;
    private javax.swing.JRadioButton jRadioButtonNoire;
    private javax.swing.JTextField jTextFieldPricePerMinute;
    private javax.swing.JPanel mainPanel;
    // End of variables declaration//GEN-END:variables
}
